home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / Hyper / Q-R / RefStack 1.5.1.sit / RefStack 1.5.1 ƒ / RefStack 1.5.1 < prev   
MacBinary  |  1993-03-24  |  464.4 KB  |  [STAK/WILD]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: RefStack 1.5.1

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert PageFocus Data (other/pageFocusData) ext Unsupported
1% dexvert Banyans VINES patch data (other/banyansVINESPatchData) ext Unsupported
100% file MacBinary II, busy, Wed Mar 24 14:38:23 1993, modified Wed Mar 24 14:38:23 1993, creator HyperCard, type HyperCard stack, 103872 bytes "RefStack 1.5.1" , at 0x19640 371427 bytes resource default (weak)
99% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 52 65 66 53 74 61 | 63 6b 20 31 2e 35 2e 31 |..RefSta|ck 1.5.1|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 04 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 01 95 c0 00 | 05 aa e3 a7 d6 69 2f a7 |........|.....i/.|
|00000060| d6 69 2f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.i/.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a0 35 00 00 |........|.....5..|
|00000080| 00 00 6e 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..n.STAK|........|
|00000090| 00 00 00 0a 00 01 95 c0 | 00 00 6e 00 00 00 00 00 |........|..n.....|
|000000a0| 00 00 00 00 00 00 00 02 | 00 00 0a 9c 00 00 00 03 |........|........|
|000000b0| 00 00 0b 99 00 00 09 04 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 0f dd 00 00 00 00 | 00 05 00 00 10 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 10 80 00 | 02 10 80 00 02 10 80 00 |........|........|
|000000f0| de 64 9c fa 00 00 00 01 | 00 71 00 50 01 61 01 f0 |.d......|.q.P.a..|
|00000100| 00 00 00 00 01 e0 02 80 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d 29 00 00 0c 87 | 00 f0 01 a0 00 00 00 00 |...)....|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 2d 2d 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |-- begin|ning of |
|00000690| 68 61 6e 64 6c 65 72 73 | 20 66 6f 72 20 63 6f 6c |handlers| for col|
|000006a0| 6f 75 72 0d 2d 2d 20 2a | 2a 2a 2a 2a 2a 2a 2a 2a |our.-- *|********|
|000006b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000006c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000006d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 2d 2d |********|*****.--|
|000006e0| 20 2a 2a 2a 2a 20 50 61 | 72 74 20 6f 66 20 74 68 | **** Pa|rt of th|
|000006f0| 65 20 48 43 43 6f 6c 6f | 72 69 7a 65 20 70 61 63 |e HCColo|rize pac|
|00000700| 6b 61 67 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |kage | |
|00000710| 20 20 20 2a 2a 2a 2a 0d | 2d 2d 20 2a 2a 2a 2a 2a | ****.|-- *****|
|00000720| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000730| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000740| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000750| 2a 0d 0d 6f 6e 20 63 48 | 43 69 6e 73 74 61 6c 6c |*..on cH|Cinstall|
|00000760| 0d 67 6c 6f 62 61 6c 20 | 67 4f 4b 74 6f 43 6f 6c |.global |gOKtoCol|
|00000770| 6f 72 69 7a 65 0d 2d 2d | 20 43 68 65 63 6b 20 66 |orize.--| Check f|
|00000780| 6f 72 20 63 6f 72 72 65 | 63 74 20 65 6e 76 69 72 |or corre|ct envir|
|00000790| 6f 6e 6d 65 6e 74 0d 73 | 65 74 20 63 75 72 73 6f |onment.s|et curso|
|000007a0| 72 20 74 6f 20 62 75 73 | 79 0d 2d 2d 0d 69 66 20 |r to bus|y.--.if |
|000007b0| 63 68 65 63 6b 45 6e 76 | 69 72 6f 6e 28 29 20 69 |checkEnv|iron() i|
|000007c0| 73 20 6e 6f 74 20 22 4f | 4b 22 20 74 68 65 6e 0d |s not "O|K" then.|
|000007d0| 2d 2d 20 67 6f 20 48 6f | 6d 65 0d 2d 2d 20 67 65 |-- go Ho|me.-- ge|
|000007e0| 74 48 6f 6d 65 49 6e 66 | 6f 0d 2d 2d 20 65 78 69 |tHomeInf|o.-- exi|
|000007f0| 74 20 74 6f 20 48 79 70 | 65 72 43 61 72 64 0d 70 |t to Hyp|erCard.p|
|00000800| 75 74 20 22 4e 6f 20 77 | 61 79 21 22 20 69 6e 74 |ut "No w|ay!" int|
|00000810| 6f 20 67 4f 4b 74 6f 43 | 6f 6c 6f 72 69 7a 65 0d |o gOKtoC|olorize.|
|00000820| 65 6e 64 20 69 66 0d 73 | 65 74 20 63 75 72 73 6f |end if.s|et curso|
|00000830| 72 20 74 6f 20 62 75 73 | 79 0d 2d 2d 0d 72 65 70 |r to bus|y.--.rep|
|00000840| 65 61 74 20 75 6e 74 69 | 6c 20 74 68 65 20 6c 6f |eat unti|l the lo|
|00000850| 63 6b 53 63 72 65 65 6e | 20 69 73 20 66 61 6c 73 |ckScreen| is fals|
|00000860| 65 0d 75 6e 6c 6f 63 6b | 20 73 63 72 65 65 6e 0d |e.unlock| screen.|
|00000870| 65 6e 64 20 72 65 70 65 | 61 74 0d 2d 2d 0d 65 6e |end repe|at.--.en|
|00000880| 64 20 63 48 43 69 6e 73 | 74 61 6c 6c 0d 0d 66 75 |d cHCins|tall..fu|
|00000890| 6e 63 74 69 6f 6e 20 63 | 68 65 63 6b 45 6e 76 69 |nction c|heckEnvi|
|000008a0| 72 6f 6e 0d 2d 2d 20 54 | 68 65 20 68 65 61 70 73 |ron.-- T|he heaps|
|000008b0| 70 61 63 65 20 72 65 71 | 75 69 72 65 6d 65 6e 74 |pace req|uirement|
|000008c0| 73 20 6d 61 79 20 76 61 | 72 79 20 64 65 70 65 6e |s may va|ry depen|
|000008d0| 64 69 6e 67 20 6f 6e 20 | 79 6f 75 72 20 73 74 61 |ding on |your sta|
|000008e0| 63 6b 0d 70 75 74 20 4d | 61 78 44 65 70 74 68 28 |ck.put M|axDepth(|
|000008f0| 29 20 69 6e 74 6f 20 54 | 68 65 44 65 70 74 68 0d |) into T|heDepth.|
|00000900| 69 66 20 54 68 65 44 65 | 70 74 68 20 3c 20 34 20 |if TheDe|pth < 4 |
|00000910| 74 68 65 6e 0d 65 72 72 | 42 69 74 44 65 70 74 68 |then.err|BitDepth|
|00000920| 0d 72 65 74 75 72 6e 20 | 22 6e 6f 74 20 4f 4b 22 |.return |"not OK"|
|00000930| 0d 65 6e 64 20 69 66 0d | 0d 69 66 20 28 54 68 65 |.end if.|.if (The|
|00000940| 44 65 70 74 68 20 3d 20 | 31 29 20 c2 0d 61 6e 64 |Depth = |1) ..and|
|00000950| 20 28 74 68 65 20 68 65 | 61 70 53 70 61 63 65 20 | (the he|apSpace |
|00000960| 3c 20 32 36 30 30 29 20 | 74 68 65 6e 20 65 72 72 |< 2600) |then err|
|00000970| 4d 65 6d 6f 72 79 20 54 | 68 65 44 65 70 74 68 2c |Memory T|heDepth,|
|00000980| 22 31 31 30 30 4b 22 0d | 65 6c 73 65 20 69 66 20 |"1100K".|else if |
|00000990| 28 54 68 65 44 65 70 74 | 68 20 3d 20 32 29 20 c2 |(TheDept|h = 2) .|
|000009a0| 0d 61 6e 64 20 28 74 68 | 65 20 68 65 61 70 53 70 |.and (th|e heapSp|
|000009b0| 61 63 65 20 3c 20 31 31 | 37 32 30 30 29 20 74 68 |ace < 11|7200) th|
|000009c0| 65 6e 20 65 72 72 4d 65 | 6d 6f 72 79 20 54 68 65 |en errMe|mory The|
|000009d0| 44 65 70 74 68 2c 22 31 | 32 30 30 4b 22 0d 65 6c |Depth,"1|200K".el|
|000009e0| 73 65 20 69 66 20 28 54 | 68 65 44 65 70 74 68 20 |se if (T|heDepth |
|000009f0| 3d 20 34 29 20 c2 0d 61 | 6e 64 20 28 74 68 65 20 |= 4) ..a|nd (the |
|00000a00| 68 65 61 70 53 70 61 63 | 65 20 3c 20 32 30 35 30 |heapSpac|e < 2050|
|00000a10| 30 30 29 20 74 68 65 6e | 20 65 72 72 4d 65 6d 6f |00) then| errMemo|
|00000a20| 72 79 20 54 68 65 44 65 | 70 74 68 2c 22 31 32 35 |ry TheDe|pth,"125|
|00000a30| 30 4b 22 0d 65 6c 73 65 | 20 69 66 20 28 54 68 65 |0K".else| if (The|
|00000a40| 44 65 70 74 68 20 3d 20 | 38 29 20 c2 0d 61 6e 64 |Depth = |8) ..and|
|00000a50| 20 28 74 68 65 20 68 65 | 61 70 53 70 61 63 65 20 | (the he|apSpace |
|00000a60| 3c 20 33 38 34 30 30 30 | 29 20 74 68 65 6e 20 65 |< 384000|) then e|
|00000a70| 72 72 4d 65 6d 6f 72 79 | 20 54 68 65 44 65 70 74 |rrMemory| TheDept|
|00000a80| 68 2c 22 31 33 30 30 4b | 22 0d 65 6c 73 65 20 69 |h,"1300K|".else i|
|00000a90| 66 20 28 54 68 65 44 65 | 70 74 68 20 3d 20 31 36 |f (TheDe|pth = 16|
|00000aa0| 29 20 c2 0d 61 6e 64 20 | 28 74 68 65 20 68 65 61 |) ..and |(the hea|
|00000ab0| 70 53 70 61 63 65 20 3c | 20 37 32 31 30 30 30 29 |pSpace <| 721000)|
|00000ac0| 20 74 68 65 6e 20 65 72 | 72 4d 65 6d 6f 72 79 20 | then er|rMemory |
|00000ad0| 54 68 65 44 65 70 74 68 | 2c 22 32 34 30 30 4b 22 |TheDepth|,"2400K"|
|00000ae0| 0d 65 6c 73 65 20 69 66 | 20 28 54 68 65 44 65 70 |.else if| (TheDep|
|00000af0| 74 68 20 b3 20 32 34 29 | 20 c2 0d 61 6e 64 20 28 |th . 24)| ..and (|
|00000b00| 74 68 65 20 68 65 61 70 | 53 70 61 63 65 20 3c 20 |the heap|Space < |
|00000b10| 31 34 32 31 30 30 30 29 | 20 74 68 65 6e 20 65 72 |1421000)| then er|
|00000b20| 72 4d 65 6d 6f 72 79 20 | 54 68 65 44 65 70 74 68 |rMemory |TheDepth|
|00000b30| 2c 22 33 30 30 30 4b 22 | 0d 65 6c 73 65 20 69 66 |,"3000K"|.else if|
|00000b40| 20 73 74 61 63 6b 41 63 | 74 69 76 61 74 65 28 29 | stackAc|tivate()|
|00000b50| 20 69 73 20 6e 6f 74 20 | 65 6d 70 74 79 20 74 68 | is not |empty th|
|00000b60| 65 6e 0d 65 72 72 43 6f | 6c 6f 72 0d 72 65 74 75 |en.errCo|lor.retu|
|00000b70| 72 6e 20 22 4f 4b 22 0d | 65 6c 73 65 20 72 65 74 |rn "OK".|else ret|
|00000b80| 75 72 6e 20 22 4f 4b 22 | 0d 65 6e 64 20 63 68 65 |urn "OK"|.end che|
|00000b90| 63 6b 45 6e 76 69 72 6f | 6e 0d 0d 6f 6e 20 65 72 |ckEnviro|n..on er|
|00000ba0| 72 4d 65 6d 6f 72 79 20 | 54 68 65 44 65 70 74 68 |rMemory |TheDepth|
|00000bb0| 2c 50 61 72 74 69 74 69 | 6f 6e 53 69 7a 65 0d 2d |,Partiti|onSize.-|
|00000bc0| 2d 20 54 68 65 20 50 61 | 72 74 69 74 69 6f 6e 53 |- The Pa|rtitionS|
|00000bd0| 69 7a 65 20 72 65 71 75 | 69 72 65 64 20 6d 61 79 |ize requ|ired may|
|00000be0| 20 76 61 72 79 20 64 65 | 70 65 6e 64 69 6e 67 20 | vary de|pending |
|00000bf0| 6f 6e 20 79 6f 75 72 20 | 73 74 61 63 6b 0d 70 75 |on your |stack.pu|
|00000c00| 74 20 6c 61 73 74 49 74 | 65 6d 28 22 3a 22 2c 74 |t lastIt|em(":",t|
|00000c10| 68 65 20 6c 6f 6e 67 20 | 6e 61 6d 65 20 6f 66 20 |he long |name of |
|00000c20| 48 79 70 65 72 43 61 72 | 64 29 20 69 6e 74 6f 20 |HyperCar|d) into |
|00000c30| 54 68 65 48 79 70 65 72 | 43 61 72 64 0d 61 6e 73 |TheHyper|Card.ans|
|00000c40| 77 65 72 20 22 4e 6f 74 | 20 65 6e 6f 75 67 68 20 |wer "Not| enough |
|00000c50| 6d 65 6d 6f 72 79 20 74 | 6f 20 72 75 6e 22 20 26 |memory t|o run" &|
|00000c60| 26 20 22 d2 22 20 26 20 | 73 68 6f 72 74 20 6e 61 |& "." & |short na|
|00000c70| 6d 65 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |me of th|is stack|
|00000c80| 20 26 20 22 d3 22 20 c2 | 0d 26 26 20 22 77 69 74 | & "." .|.&& "wit|
|00000c90| 68 22 20 26 26 20 54 68 | 65 44 65 70 74 68 20 26 |h" && Th|eDepth &|
|00000ca0| 20 22 20 62 69 74 20 63 | 6f 6c 6f 75 72 2e 20 54 | " bit c|olour. T|
|00000cb0| 68 65 20 63 75 72 72 65 | 6e 74 20 6d 65 6d 6f 72 |he curre|nt memor|
|00000cc0| 79 20 73 69 7a 65 20 6f | 66 22 20 26 26 20 c2 0d |y size o|f" && ..|
|00000cd0| 54 68 65 48 79 70 65 72 | 43 61 72 64 20 26 26 20 |TheHyper|Card && |
|00000ce0| 22 73 68 6f 75 6c 64 20 | 62 65 20 61 74 20 6c 65 |"should |be at le|
|00000cf0| 61 73 74 22 20 26 26 20 | 50 61 72 74 69 74 69 6f |ast" && |Partitio|
|00000d00| 6e 53 69 7a 65 20 26 20 | 22 2e 22 0d 65 6e 64 20 |nSize & |".".end |
|00000d10| 65 72 72 4d 65 6d 6f 72 | 79 0d 0d 66 75 6e 63 74 |errMemor|y..funct|
|00000d20| 69 6f 6e 20 6c 61 73 74 | 49 74 65 6d 20 54 68 65 |ion last|Item The|
|00000d30| 44 65 6c 69 6d 69 74 65 | 72 2c 53 74 72 69 6e 67 |Delimite|r,String|
|00000d40| 0d 2d 2d 20 67 69 76 65 | 6e 20 74 68 65 20 64 65 |.-- give|n the de|
|00000d50| 6c 69 6d 69 74 65 72 20 | 3c 54 68 65 44 65 6c 69 |limiter |<TheDeli|
|00000d60| 6d 69 74 65 72 3e 2c 20 | 72 65 74 75 72 6e 20 74 |miter>, |return t|
|00000d70| 68 65 20 70 6f 72 74 69 | 6f 6e 20 6f 66 20 3c 53 |he porti|on of <S|
|00000d80| 74 72 69 6e 67 3e 20 74 | 68 61 74 0d 2d 2d 20 66 |tring> t|hat.-- f|
|00000d90| 6f 6c 6c 6f 77 73 20 74 | 68 65 20 4c 41 53 54 20 |ollows t|he LAST |
|00000da0| 6f 63 63 75 72 61 6e 63 | 65 20 6f 66 20 3c 54 68 |occuranc|e of <Th|
|00000db0| 65 44 65 6c 69 6d 69 74 | 65 72 3e 0d 69 66 20 54 |eDelimit|er>.if T|
|00000dc0| 68 65 44 65 6c 69 6d 69 | 74 65 72 20 69 73 20 69 |heDelimi|ter is i|
|00000dd0| 6e 20 53 74 72 69 6e 67 | 0d 74 68 65 6e 20 70 75 |n String|.then pu|
|00000de0| 74 20 6c 61 73 74 49 74 | 65 6d 28 54 68 65 44 65 |t lastIt|em(TheDe|
|00000df0| 6c 69 6d 69 74 65 72 2c | 63 68 61 72 20 6f 66 66 |limiter,|char off|
|00000e00| 73 65 74 28 54 68 65 44 | 65 6c 69 6d 69 74 65 72 |set(TheD|elimiter|
|00000e10| 2c 53 74 72 69 6e 67 29 | 20 2b 20 31 20 74 6f 20 |,String)| + 1 to |
|00000e20| 6c 65 6e 67 74 68 28 53 | 74 72 69 6e 67 29 20 6f |length(S|tring) o|
|00000e30| 66 20 53 74 72 69 6e 67 | 29 20 69 6e 74 6f 20 53 |f String|) into S|
|00000e40| 74 72 69 6e 67 0d 72 65 | 74 75 72 6e 20 53 74 72 |tring.re|turn Str|
|00000e50| 69 6e 67 0d 65 6e 64 20 | 6c 61 73 74 49 74 65 6d |ing.end |lastItem|
|00000e60| 0d 0d 6f 6e 20 65 72 72 | 42 69 74 44 65 70 74 68 |..on err|BitDepth|
|00000e70| 0d 61 6e 73 77 65 72 20 | 22 54 68 69 73 20 73 74 |.answer |"This st|
|00000e80| 61 63 6b 20 72 65 71 75 | 69 72 65 73 20 61 20 63 |ack requ|ires a c|
|00000e90| 6f 6c 6f 72 20 73 79 73 | 74 65 6d 20 73 65 74 20 |olor sys|tem set |
|00000ea0| 74 6f 20 61 74 20 6c 65 | 61 73 74 20 31 36 20 63 |to at le|ast 16 c|
|00000eb0| 6f 6c 6f 72 73 22 20 26 | 26 20 c2 0d 22 28 34 20 |olors" &|& .."(4 |
|00000ec0| 62 69 74 2d 64 65 70 74 | 68 29 20 74 6f 20 64 69 |bit-dept|h) to di|
|00000ed0| 73 70 6c 61 79 20 67 6c | 6f 72 69 6f 75 73 20 63 |splay gl|orious c|
|00000ee0| 6f 6c 6f 72 2e 22 20 2d | 2d c6 0d 65 6e 64 20 65 |olor." -|-..end e|
|00000ef0| 72 72 42 69 74 44 65 70 | 74 68 0d 0d 6f 6e 20 63 |rrBitDep|th..on c|
|00000f00| 6f 6c 6f 72 69 7a 65 48 | 43 0d 67 6c 6f 62 61 6c |olorizeH|C.global|
|00000f10| 20 67 4f 4b 54 6f 43 6f | 6c 6f 72 69 7a 65 2c 4f | gOKToCo|lorize,O|
|00000f20| 6b 54 6f 55 73 65 43 6f | 6c 6f 75 72 0d 69 66 20 |kToUseCo|lour.if |
|00000f30| 28 67 4f 4b 54 6f 43 6f | 6c 6f 72 69 7a 65 20 69 |(gOKToCo|lorize i|
|00000f40| 73 20 65 6d 70 74 79 29 | 20 74 68 65 6e 20 70 61 |s empty)| then pa|
|00000f50| 73 73 20 63 6f 6c 6f 72 | 69 7a 65 48 43 0d 65 6e |ss color|izeHC.en|
|00000f60| 64 20 63 6f 6c 6f 72 69 | 7a 65 48 43 0d 0d 66 75 |d colori|zeHC..fu|
|00000f70| 6e 63 74 69 6f 6e 20 73 | 74 61 63 6b 41 63 74 69 |nction s|tackActi|
|00000f80| 76 61 74 65 0d 67 6c 6f | 62 61 6c 20 67 4f 4b 54 |vate.glo|bal gOKT|
|00000f90| 6f 43 6f 6c 6f 72 69 7a | 65 0d 2d 2d 0d 70 75 74 |oColoriz|e.--.put|
|00000fa0| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 67 4f 4b 54 | empty i|nto gOKT|
|00000fb0| 6f 43 6f 6c 6f 72 69 7a | 65 0d 2d 2d 0d 63 6f 6c |oColoriz|e.--.col|
|00000fc0| 6f 72 69 7a 65 48 43 20 | 22 61 73 73 69 67 6e 54 |orizeHC |"assignT|
|00000fd0| 6f 46 72 6f 6e 74 22 0d | 69 66 20 74 68 65 20 72 |oFront".|if the r|
|00000fe0| 65 73 75 6c 74 20 69 73 | 20 6e 6f 74 20 65 6d 70 |esult is| not emp|
|00000ff0| 74 79 20 74 68 65 6e 0d | 70 75 74 20 74 68 65 20 |ty then.|put the |
|00001000| 72 65 73 75 6c 74 20 69 | 6e 74 6f 20 67 4f 4b 54 |result i|nto gOKT|
|00001010| 6f 43 6f 6c 6f 72 69 7a | 65 0d 72 65 74 75 72 6e |oColoriz|e.return|
|00001020| 20 67 4f 4b 54 6f 43 6f | 6c 6f 72 69 7a 65 0d 65 | gOKToCo|lorize.e|
|00001030| 6e 64 20 69 66 0d 65 6e | 64 20 73 74 61 63 6b 41 |nd if.en|d stackA|
|00001040| 63 74 69 76 61 74 65 0d | 0d 6f 6e 20 65 72 72 43 |ctivate.|.on errC|
|00001050| 6f 6c 6f 72 0d 67 6c 6f | 62 61 6c 20 67 4f 4b 54 |olor.glo|bal gOKT|
|00001060| 6f 43 6f 6c 6f 72 69 7a | 65 0d 61 6e 73 77 65 72 |oColoriz|e.answer|
|00001070| 20 22 57 61 72 6e 69 6e | 67 3a 20 54 68 65 20 65 | "Warnin|g: The e|
|00001080| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 74 68 69 73 20 |nvironme|nt this |
|00001090| 73 74 61 63 6b 20 69 73 | 20 63 75 72 72 65 6e 74 |stack is| current|
|000010a0| 6c 79 20 72 75 6e 6e 69 | 6e 67 20 69 6e 20 69 73 |ly runni|ng in is|
|000010b0| 20 6e 6f 74 22 20 26 26 | 20 c2 0d 22 61 62 6c 65 | not" &&| .."able|
|000010c0| 20 74 6f 20 73 75 70 70 | 6f 72 74 20 63 6f 6c 6f | to supp|ort colo|
|000010d0| 72 2e 22 20 26 20 72 65 | 74 75 72 6e 20 26 20 22 |r." & re|turn & "|
|000010e0| 52 65 61 73 6f 6e 3a 22 | 20 26 26 20 67 4f 4b 54 |Reason:"| && gOKT|
|000010f0| 6f 43 6f 6c 6f 72 69 7a | 65 0d 65 6e 64 20 65 72 |oColoriz|e.end er|
|00001100| 72 43 6f 6c 6f 72 0d 0d | 6f 6e 20 63 48 43 64 69 |rColor..|on cHCdi|
|00001110| 73 70 6f 73 65 0d 2d 2d | 20 63 6c 6f 73 69 6e 67 |spose.--| closing|
|00001120| 20 74 68 65 20 73 74 61 | 63 6b 2c 20 67 65 74 20 | the sta|ck, get |
|00001130| 72 69 64 20 6f 66 20 74 | 68 65 20 43 6f 6c 6f 72 |rid of t|he Color|
|00001140| 69 7a 65 20 73 74 75 66 | 66 0d 6c 6f 63 6b 20 73 |ize stuf|f.lock s|
|00001150| 63 72 65 65 6e 0d 43 6f | 6c 6f 72 69 7a 65 48 43 |creen.Co|lorizeHC|
|00001160| 20 22 44 69 73 70 6f 73 | 65 22 0d 69 66 20 74 68 | "Dispos|e".if th|
|00001170| 65 20 72 65 73 75 6c 74 | 20 69 73 20 6e 6f 74 20 |e result| is not |
|00001180| 65 6d 70 74 79 20 74 68 | 65 6e 20 61 6e 73 77 65 |empty th|en answe|
|00001190| 72 20 74 68 65 20 72 65 | 73 75 6c 74 0d 75 6e 6c |r the re|sult.unl|
|000011a0| 6f 63 6b 20 73 63 72 65 | 65 6e 20 2d 2d 20 66 6f |ock scre|en -- fo|
|000011b0| 72 63 65 20 61 20 73 63 | 72 65 65 6e 20 75 70 64 |rce a sc|reen upd|
|000011c0| 61 74 65 0d 65 6e 64 20 | 63 48 43 64 69 73 70 6f |ate.end |cHCdispo|
|000011d0| 73 65 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 77 72 6f |se..func|tion wro|
|000011e0| 6e 67 53 74 61 63 6b 0d | 70 75 74 20 74 68 65 20 |ngStack.|put the |
|000011f0| 76 61 6c 75 65 20 6f 66 | 20 77 6f 72 64 20 32 20 |value of| word 2 |
|00001200| 6f 66 20 74 68 65 20 6c | 6f 6e 67 20 6e 61 6d 65 |of the l|ong name|
|00001210| 20 6f 66 20 6d 65 20 69 | 6e 74 6f 20 54 68 65 53 | of me i|nto TheS|
|00001220| 74 61 63 6b 4e 61 6d 65 | 0d 72 65 74 75 72 6e 20 |tackName|.return |
|00001230| 28 54 68 65 53 74 61 63 | 6b 4e 61 6d 65 20 69 73 |(TheStac|kName is|
|00001240| 20 6e 6f 74 20 6c 69 6e | 65 20 31 20 6f 66 20 74 | not lin|e 1 of t|
|00001250| 68 65 20 73 74 61 63 6b | 73 29 0d 65 6e 64 20 77 |he stack|s).end w|
|00001260| 72 6f 6e 67 53 74 61 63 | 6b 0d 0d 0d 6f 6e 20 72 |rongStac|k...on r|
|00001270| 65 73 75 6d 65 0d 69 66 | 20 77 72 6f 6e 67 53 74 |esume.if| wrongSt|
|00001280| 61 63 6b 28 29 20 74 68 | 65 6e 20 70 61 73 73 20 |ack() th|en pass |
|00001290| 72 65 73 75 6d 65 0d 63 | 48 43 69 6e 73 74 61 6c |resume.c|HCinstal|
|000012a0| 6c 0d 70 61 73 73 20 72 | 65 73 75 6d 65 0d 65 6e |l.pass r|esume.en|
|000012b0| 64 20 72 65 73 75 6d 65 | 0d 0d 6f 6e 20 73 75 73 |d resume|..on sus|
|000012c0| 70 65 6e 64 0d 69 66 20 | 77 72 6f 6e 67 53 74 61 |pend.if |wrongSta|
|000012d0| 63 6b 28 29 20 74 68 65 | 6e 20 70 61 73 73 20 73 |ck() the|n pass s|
|000012e0| 75 73 70 65 6e 64 0d 63 | 48 43 64 69 73 70 6f 73 |uspend.c|HCdispos|
|000012f0| 65 0d 70 61 73 73 20 73 | 75 73 70 65 6e 64 0d 65 |e.pass s|uspend.e|
|00001300| 6e 64 20 73 75 73 70 65 | 6e 64 0d 0d 0d 2d 2d 20 |nd suspe|nd...-- |
|00001310| 65 6e 64 20 6f 66 20 68 | 61 6e 64 6c 65 72 73 20 |end of h|andlers |
|00001320| 66 6f 72 20 63 6f 6c 6f | 75 72 0d 2d 2d 20 2a 2a |for colo|ur.-- **|
|00001330| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001340| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001350| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001360| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 0d 0d 6f 6e |********|***...on|
|00001370| 20 61 72 72 6f 77 6b 65 | 79 20 64 75 6d 6d 79 0d | arrowke|y dummy.|
|00001380| 2d 2d 20 64 69 73 61 62 | 6c 65 20 63 75 72 73 6f |-- disab|le curso|
|00001390| 72 20 6b 65 79 73 0d 62 | 65 65 70 0d 65 6e 64 20 |r keys.b|eep.end |
|000013a0| 61 72 72 6f 77 6b 65 79 | 0d 0d 6f 6e 20 63 6c 6f |arrowkey|..on clo|
|000013b0| 73 65 61 75 74 68 6f 72 | 77 69 6e 64 6f 77 0d 2d |seauthor|window.-|
|000013c0| 2d 20 63 6c 6f 73 65 20 | 74 68 65 20 61 75 74 68 |- close |the auth|
|000013d0| 6f 72 20 77 69 6e 64 6f | 77 20 28 21 29 0d 63 6c |or windo|w (!).cl|
|000013e0| 6f 73 65 20 77 69 6e 64 | 6f 77 20 22 61 75 74 68 |ose wind|ow "auth|
|000013f0| 6f 72 22 0d 65 6e 64 20 | 63 6c 6f 73 65 61 75 74 |or".end |closeaut|
|00001400| 68 6f 72 77 69 6e 64 6f | 77 0d 0d 6f 6e 20 6d 61 |horwindo|w..on ma|
|00001410| 6b 65 6b 65 79 77 6f 72 | 64 6c 69 73 74 73 20 74 |kekeywor|dlists t|
|00001420| 68 65 6b 65 79 73 0d 2d | 2d 20 55 73 65 20 74 68 |hekeys.-|- Use th|
|00001430| 65 20 76 61 72 69 61 62 | 6c 65 20 74 68 65 6b 65 |e variab|le theke|
|00001440| 79 73 20 74 6f 20 67 65 | 6e 65 72 61 74 65 20 74 |ys to ge|nerate t|
|00001450| 68 65 0d 2d 2d 20 74 77 | 6f 20 6b 65 79 77 6f 72 |he.-- tw|o keywor|
|00001460| 64 20 6c 69 73 74 73 20 | 6e 65 65 64 65 64 2e 20 |d lists |needed. |
|00001470| 54 68 65 73 65 20 61 72 | 65 20 73 74 6f 72 65 64 |These ar|e stored|
|00001480| 20 69 6e 20 74 68 65 20 | 66 69 65 6c 64 73 0d 2d | in the |fields.-|
|00001490| 2d 20 22 67 6c 6f 62 61 | 6c 20 6b 65 79 77 6f 72 |- "globa|l keywor|
|000014a0| 64 73 22 20 61 6e 64 20 | 22 67 6c 6f 62 61 6c 20 |ds" and |"global |
|000014b0| 6b 65 79 77 6f 72 64 73 | 20 6d 65 6e 75 22 20 61 |keywords| menu" a|
|000014c0| 6e 64 20 61 72 65 20 75 | 73 65 64 0d 2d 2d 20 66 |nd are u|sed.-- f|
|000014d0| 6f 72 20 28 72 65 73 70 | 65 63 74 69 76 65 6c 79 |or (resp|ectively|
|000014e0| 29 20 73 65 61 72 63 68 | 65 73 20 61 6e 64 20 74 |) search|es and t|
|000014f0| 6f 20 67 65 6e 65 72 61 | 74 65 20 74 68 65 20 73 |o genera|te the s|
|00001500| 75 62 6d 65 6e 75 20 6f | 66 0d 2d 2d 20 6b 65 79 |ubmenu o|f.-- key|
|00001510| 77 6f 72 64 73 20 66 72 | 6f 6d 20 6f 6e 20 74 68 |words fr|om on th|
|00001520| 65 20 22 73 65 61 72 63 | 68 22 20 6d 65 6e 75 2e |e "searc|h" menu.|
|00001530| 20 54 68 65 73 65 20 61 | 72 65 20 6d 61 64 65 2c | These a|re made,|
|00001540| 20 61 6e 64 20 74 68 65 | 6e 0d 2d 2d 20 73 6f 72 | and the|n.-- sor|
|00001550| 74 65 64 2e 0d 0d 70 75 | 74 20 74 68 65 6b 65 79 |ted...pu|t thekey|
|00001560| 73 20 69 6e 74 6f 20 62 | 67 20 66 69 65 6c 64 20 |s into b|g field |
|00001570| 22 67 6c 6f 62 61 6c 20 | 6b 65 79 77 6f 72 64 73 |"global |keywords|
|00001580| 22 0d 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |".put em|pty into|
|00001590| 20 62 67 20 66 69 65 6c | 64 20 22 67 6c 6f 62 61 | bg fiel|d "globa|
|000015a0| 6c 20 6b 65 79 77 6f 72 | 64 73 20 6d 65 6e 75 22 |l keywor|ds menu"|
|000015b0| 0d 0d 70 75 74 20 66 75 | 6c 6c 66 69 6e 64 28 74 |..put fu|llfind(t|
|000015c0| 68 65 6b 65 79 73 2c 22 | c7 22 2c 66 61 6c 73 65 |hekeys,"|.",false|
|000015d0| 2c 74 72 75 65 29 20 69 | 6e 74 6f 20 74 65 6d 70 |,true) i|nto temp|
|000015e0| 66 6f 75 6e 64 73 74 61 | 72 74 0d 70 75 74 20 66 |foundsta|rt.put f|
|000015f0| 75 6c 6c 66 69 6e 64 28 | 74 68 65 6b 65 79 73 2c |ullfind(|thekeys,|
|00001600| 22 c8 22 2c 66 61 6c 73 | 65 2c 74 72 75 65 29 20 |".",fals|e,true) |
|00001610| 69 6e 74 6f 20 74 65 6d | 70 66 6f 75 6e 64 66 69 |into tem|pfoundfi|
|00001620| 6e 69 73 68 0d 70 75 74 | 20 74 68 65 20 6e 75 6d |nish.put| the num|
|00001630| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 20 6f 66 20 |ber of l|ines of |
|00001640| 74 65 6d 70 66 6f 75 6e | 64 73 74 61 72 74 20 69 |tempfoun|dstart i|
|00001650| 6e 74 6f 20 6e 75 6d 62 | 65 72 6f 66 6b 65 79 73 |nto numb|erofkeys|
|00001660| 0d 69 66 20 6e 75 6d 62 | 65 72 6f 66 6b 65 79 73 |.if numb|erofkeys|
|00001670| 3e 30 20 74 68 65 6e 0d | 72 65 70 65 61 74 20 77 |>0 then.|repeat w|
|00001680| 69 74 68 20 6b 65 79 63 | 6f 75 6e 74 20 3d 20 31 |ith keyc|ount = 1|
|00001690| 20 74 6f 20 6e 75 6d 62 | 65 72 6f 66 6b 65 79 73 | to numb|erofkeys|
|000016a0| 0d 70 75 74 20 69 74 65 | 6d 20 31 20 6f 66 20 6c |.put ite|m 1 of l|
|000016b0| 69 6e 65 20 6b 65 79 63 | 6f 75 6e 74 20 6f 66 20 |ine keyc|ount of |
|000016c0| 74 65 6d 70 66 6f 75 6e | 64 73 74 61 72 74 20 69 |tempfoun|dstart i|
|000016d0| 6e 74 6f 20 73 63 68 61 | 72 0d 70 75 74 20 69 74 |nto scha|r.put it|
|000016e0| 65 6d 20 31 20 6f 66 20 | 6c 69 6e 65 20 6b 65 79 |em 1 of |line key|
|000016f0| 63 6f 75 6e 74 20 6f 66 | 20 74 65 6d 70 66 6f 75 |count of| tempfou|
|00001700| 6e 64 66 69 6e 69 73 68 | 20 69 6e 74 6f 20 66 63 |ndfinish| into fc|
|00001710| 68 61 72 0d 70 75 74 20 | 63 68 61 72 20 73 63 68 |har.put |char sch|
|00001720| 61 72 20 74 6f 20 66 63 | 68 61 72 20 6f 66 20 c2 |ar to fc|har of .|
|00001730| 0d 74 68 65 6b 65 79 73 | 20 69 6e 74 6f 20 74 65 |.thekeys| into te|
|00001740| 6d 70 6b 65 79 0d 70 75 | 74 20 63 68 61 72 20 28 |mpkey.pu|t char (|
|00001750| 73 63 68 61 72 20 2b 20 | 31 29 20 74 6f 20 28 66 |schar + |1) to (f|
|00001760| 63 68 61 72 20 2d 20 31 | 29 20 6f 66 20 c2 0d 74 |char - 1|) of ..t|
|00001770| 68 65 6b 65 79 73 20 69 | 6e 74 6f 20 74 65 6d 70 |hekeys i|nto temp|
|00001780| 6b 65 79 6d 65 6e 75 0d | 70 75 74 20 22 2c 22 20 |keymenu.|put "," |
|00001790| 26 20 74 65 6d 70 6b 65 | 79 6d 65 6e 75 20 61 66 |& tempke|ymenu af|
|000017a0| 74 65 72 20 62 67 20 66 | 69 65 6c 64 20 22 67 6c |ter bg f|ield "gl|
|000017b0| 6f 62 61 6c 20 6b 65 79 | 77 6f 72 64 73 20 6d 65 |obal key|words me|
|000017c0| 6e 75 22 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 65 |nu".end |repeat.e|
|000017d0| 6e 64 20 69 66 0d 70 75 | 74 20 66 75 6c 6c 73 6f |nd if.pu|t fullso|
|000017e0| 72 74 28 62 67 20 66 69 | 65 6c 64 20 22 67 6c 6f |rt(bg fi|eld "glo|
|000017f0| 62 61 6c 20 6b 65 79 77 | 6f 72 64 73 22 2c 22 73 |bal keyw|ords","s|
|00001800| 3d 72 65 74 75 72 6e 22 | 29 20 69 6e 74 6f 20 62 |=return"|) into b|
|00001810| 67 20 66 69 65 6c 64 20 | 22 67 6c 6f 62 61 6c 20 |g field |"global |
|00001820| 6b 65 79 77 6f 72 64 73 | 22 0d 70 75 74 20 66 75 |keywords|".put fu|
|00001830| 6c 6c 73 6f 72 74 28 62 | 67 20 66 69 65 6c 64 20 |llsort(b|g field |
|00001840| 22 67 6c 6f 62 61 6c 20 | 6b 65 79 77 6f 72 64 73 |"global |keywords|
|00001850| 20 6d 65 6e 75 22 29 20 | 69 6e 74 6f 20 62 67 20 | menu") |into bg |
|00001860| 66 69 65 6c 64 20 22 67 | 6c 6f 62 61 6c 20 6b 65 |field "g|lobal ke|
|00001870| 79 77 6f 72 64 73 20 6d | 65 6e 75 22 0d 65 6e 64 |ywords m|enu".end|
|00001880| 20 6d 61 6b 65 6b 65 79 | 77 6f 72 64 6c 69 73 74 | makekey|wordlist|
|00001890| 73 0d 0d 6f 6e 20 75 70 | 64 61 74 65 69 6e 64 65 |s..on up|dateinde|
|000018a0| 78 0d 67 6c 6f 62 61 6c | 20 61 6c 6c 69 6e 64 65 |x.global| allinde|
|000018b0| 78 65 6e 74 72 69 65 73 | 2c 77 4e 61 6d 65 2c 69 |xentries|,wName,i|
|000018c0| 6e 64 65 78 76 69 73 69 | 62 6c 65 0d 0d 2d 2d 20 |ndexvisi|ble..-- |
|000018d0| 63 68 65 63 6b 20 77 68 | 65 74 68 65 72 20 74 68 |check wh|ether th|
|000018e0| 65 72 65 27 73 20 61 6e | 79 20 69 6e 64 65 78 20 |ere's an|y index |
|000018f0| 65 6e 74 72 69 65 73 20 | 74 6f 20 64 69 73 70 6c |entries |to displ|
|00001900| 61 79 2c 20 61 6e 64 20 | 69 66 0d 2d 2d 20 74 68 |ay, and |if.-- th|
|00001910| 65 72 65 20 61 72 65 2c | 20 74 68 65 6e 20 6d 61 |ere are,| then ma|
|00001920| 6b 65 20 61 20 77 69 6e | 64 6f 77 20 28 74 68 69 |ke a win|dow (thi|
|00001930| 73 20 61 73 73 75 6d 65 | 73 20 79 6f 75 72 20 73 |s assume|s your s|
|00001940| 63 72 65 65 6e 20 69 73 | 20 36 34 30 0d 2d 2d 20 |creen is| 640.-- |
|00001950| 70 69 78 65 6c 73 20 77 | 69 64 65 29 2c 20 61 6e |pixels w|ide), an|
|00001960| 64 20 70 75 74 20 74 68 | 65 20 74 65 78 74 20 61 |d put th|e text a|
|00001970| 6c 6c 69 6e 64 65 78 65 | 6e 74 72 69 65 73 20 69 |llindexe|ntries i|
|00001980| 6e 20 69 74 2e 0d 0d 64 | 69 73 70 6c 61 79 72 65 |n it...d|isplayre|
|00001990| 63 6f 72 64 0d 0d 2d 2d | 20 74 6f 20 75 70 64 61 |cord..--| to upda|
|000019a0| 74 65 20 27 77 4e 61 6d | 65 27 0d 69 66 20 77 4e |te 'wNam|e'.if wN|
|000019b0| 61 6d 65 20 69 73 20 6e | 6f 74 20 65 6d 70 74 79 |ame is n|ot empty|
|000019c0| 20 74 68 65 6e 0d 69 66 | 20 61 6c 6c 69 6e 64 65 | then.if| allinde|
|000019d0| 78 65 6e 74 72 69 65 73 | 20 69 73 20 65 6d 70 74 |xentries| is empt|
|000019e0| 79 20 61 6e 64 20 69 6e | 64 65 78 76 69 73 69 62 |y and in|dexvisib|
|000019f0| 6c 65 20 74 68 65 6e 0d | 63 6c 6f 73 65 20 77 69 |le then.|close wi|
|00001a00| 6e 64 6f 77 20 22 49 6e | 64 65 78 22 0d 70 75 74 |ndow "In|dex".put|
|00001a10| 20 66 61 6c 73 65 20 69 | 6e 74 6f 20 69 6e 64 65 | false i|nto inde|
|00001a20| 78 76 69 73 69 62 6c 65 | 20 65 6c 73 65 0d 69 66 |xvisible| else.if|
|00001a30| 20 6e 6f 74 20 69 6e 64 | 65 78 76 69 73 69 62 6c | not ind|exvisibl|
|00001a40| 65 20 74 68 65 6e 0d 70 | 75 74 20 74 68 65 20 72 |e then.p|ut the r|
|00001a50| 65 63 74 20 6f 66 20 77 | 69 6e 64 6f 77 20 77 4e |ect of w|indow wN|
|00001a60| 61 6d 65 20 69 6e 74 6f | 20 74 65 6d 70 72 65 63 |ame into| temprec|
|00001a70| 74 0d 70 75 74 20 28 34 | 20 2d 20 69 74 65 6d 20 |t.put (4| - item |
|00001a80| 31 20 6f 66 20 74 65 6d | 70 72 65 63 74 29 20 26 |1 of tem|prect) &|
|00001a90| 20 22 2c 22 20 26 c2 0d | 28 34 31 20 2d 20 69 74 | "," &..|(41 - it|
|00001aa0| 65 6d 20 32 20 6f 66 20 | 74 65 6d 70 72 65 63 74 |em 2 of |temprect|
|00001ab0| 29 20 26 20 22 2c 22 20 | 26 c2 0d 28 36 33 36 20 |) & "," |&..(636 |
|00001ac0| 2d 20 69 74 65 6d 20 31 | 20 6f 66 20 74 65 6d 70 |- item 1| of temp|
|00001ad0| 72 65 63 74 29 20 26 20 | 22 2c 22 20 26 c2 0d 28 |rect) & |"," &..(|
|00001ae0| 32 30 31 20 2d 20 69 74 | 65 6d 20 32 20 6f 66 20 |201 - it|em 2 of |
|00001af0| 74 65 6d 70 72 65 63 74 | 29 20 69 6e 74 6f 20 69 |temprect|) into i|
|00001b00| 6e 64 65 78 72 65 63 74 | 0d 6c 69 73 74 6f 69 64 |ndexrect|.listoid|
|00001b10| 20 22 49 6e 64 65 78 22 | 2c 61 6c 6c 69 6e 64 65 | "Index"|,allinde|
|00001b20| 78 65 6e 74 72 69 65 73 | 2c 22 4d 6f 6e 61 63 6f |xentries|,"Monaco|
|00001b30| 2c 39 22 2c 69 6e 64 65 | 78 72 65 63 74 2c 7a 6f |,9",inde|xrect,zo|
|00001b40| 6f 6d 2c c2 0d 22 44 6f | 75 62 6c 65 2d 63 6c 69 |om,.."Do|uble-cli|
|00001b50| 63 6b 20 69 6e 20 74 68 | 65 20 6c 69 73 74 20 74 |ck in th|e list t|
|00001b60| 6f 20 67 6f 20 74 6f 20 | 74 68 65 20 72 65 66 65 |o go to |the refe|
|00001b70| 72 65 6e 63 65 3b 20 43 | 6c 69 63 6b 20 48 45 52 |rence; C|lick HER|
|00001b80| 45 20 74 6f 20 70 72 69 | 6e 74 22 2c 72 65 74 75 |E to pri|nt",retu|
|00001b90| 72 6e 0d 70 75 74 20 74 | 72 75 65 20 69 6e 74 6f |rn.put t|rue into|
|00001ba0| 20 69 6e 64 65 78 76 69 | 73 69 62 6c 65 0d 65 6c | indexvi|sible.el|
|00001bb0| 73 65 0d 73 65 74 20 74 | 68 65 20 74 65 78 74 20 |se.set t|he text |
|00001bc0| 6f 66 20 77 69 6e 64 6f | 77 20 22 49 6e 64 65 78 |of windo|w "Index|
|00001bd0| 22 20 74 6f 20 61 6c 6c | 69 6e 64 65 78 65 6e 74 |" to all|indexent|
|00001be0| 72 69 65 73 0d 0d 65 6e | 64 20 69 66 0d 65 6e 64 |ries..en|d if.end|
|00001bf0| 20 69 66 0d 65 6e 64 20 | 69 66 0d 0d 65 6e 64 20 | if.end |if..end |
|00001c00| 75 70 64 61 74 65 69 6e | 64 65 78 0d 0d 6f 6e 20 |updatein|dex..on |
|00001c10| 64 65 6c 65 74 65 72 65 | 63 6f 72 64 6e 75 6d 62 |deletere|cordnumb|
|00001c20| 65 72 20 72 65 63 6e 75 | 6d 0d 67 6c 6f 62 61 6c |er recnu|m.global|
|00001c30| 20 61 6c 6c 72 65 63 6f | 72 64 73 2c 61 6c 6c 69 | allreco|rds,alli|
|00001c40| 6e 64 65 78 65 6e 74 72 | 69 65 73 0d 0d 2d 2d 20 |ndexentr|ies..-- |
|00001c50| 74 61 6b 65 73 20 61 20 | 72 65 63 6f 72 64 20 6f |takes a |record o|
|00001c60| 75 74 20 6f 66 20 74 68 | 65 20 72 65 63 6f 72 64 |ut of th|e record|
|00001c70| 73 20 76 61 72 69 61 62 | 6c 65 20 61 6c 6c 72 65 |s variab|le allre|
|00001c80| 63 6f 72 64 73 2c 0d 2d | 2d 20 61 6e 64 20 74 68 |cords,.-|- and th|
|00001c90| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |e corres|ponding |
|00001ca0| 6c 69 6e 65 20 6f 75 74 | 20 6f 66 20 74 68 65 20 |line out| of the |
|00001cb0| 69 6e 64 65 78 2c 20 61 | 6e 64 20 74 68 65 6e 0d |index, a|nd then.|
|00001cc0| 2d 2d 20 72 65 64 69 73 | 70 6c 61 79 73 20 74 68 |-- redis|plays th|
|00001cd0| 65 20 69 6e 64 65 78 0d | 0d 64 65 6c 65 74 65 20 |e index.|.delete |
|00001ce0| 6c 69 6e 65 20 72 65 63 | 6e 75 6d 20 6f 66 20 61 |line rec|num of a|
|00001cf0| 6c 6c 72 65 63 6f 72 64 | 73 0d 64 65 6c 65 74 65 |llrecord|s.delete|
|00001d00| 20 6c 69 6e 65 20 72 65 | 63 6e 75 6d 20 6f 66 20 | line re|cnum of |
|00001d10| 61 6c 6c 69 6e 64 65 78 | 65 6e 74 72 69 65 73 0d |allindex|entries.|
|00001d20| 0d 75 70 64 61 74 65 69 | 6e 64 65 78 0d 65 6e 64 |.updatei|ndex.end|
|00001d30| 20 64 65 6c 65 74 65 72 | 65 63 6f 72 64 6e 75 6d | deleter|ecordnum|
|00001d40| 62 65 72 0d 0d 6f 6e 20 | 77 72 69 74 65 72 65 63 |ber..on |writerec|
|00001d50| 6f 72 64 69 6e 20 69 6e | 72 65 63 6f 72 64 0d 67 |ordin in|record.g|
|00001d60| 6c 6f 62 61 6c 20 61 6c | 6c 72 65 63 6f 72 64 73 |lobal al|lrecords|
|00001d70| 2c 74 68 69 73 72 65 66 | 6e 6f 2c 61 6c 6c 69 6e |,thisref|no,allin|
|00001d80| 64 65 78 65 6e 74 72 69 | 65 73 0d 0d 2d 2d 20 77 |dexentri|es..-- w|
|00001d90| 69 74 68 20 61 20 6e 65 | 77 20 72 65 63 6f 72 64 |ith a ne|w record|
|00001da0| 20 28 69 6e 72 65 63 6f | 72 64 29 2c 20 66 69 6e | (inreco|rd), fin|
|00001db0| 64 20 6f 75 74 20 77 68 | 65 72 65 20 69 74 20 73 |d out wh|ere it s|
|00001dc0| 68 6f 75 6c 64 20 67 6f | 20 69 6e 0d 2d 2d 20 74 |hould go| in.-- t|
|00001dd0| 68 65 20 72 65 63 6f 72 | 64 73 20 28 67 65 74 70 |he recor|ds (getp|
|00001de0| 6f 73 69 74 69 6f 6e 2c | 20 75 73 69 6e 67 20 74 |osition,| using t|
|00001df0| 68 65 20 66 69 72 73 74 | 20 61 75 74 68 6f 72 27 |he first| author'|
|00001e00| 73 20 6e 61 6d 65 20 64 | 6f 65 73 0d 2d 2d 20 74 |s name d|oes.-- t|
|00001e10| 68 69 73 29 2e 20 54 68 | 65 6e 20 63 72 65 61 74 |his). Th|en creat|
|00001e20| 65 20 61 6e 20 69 6e 64 | 65 78 20 65 6e 74 72 79 |e an ind|ex entry|
|00001e30| 2c 20 61 6e 64 20 70 75 | 74 20 74 68 65 20 72 65 |, and pu|t the re|
|00001e40| 63 6f 72 64 20 61 6e 64 | 20 74 68 65 0d 2d 2d 20 |cord and| the.-- |
|00001e50| 69 6e 64 65 78 20 65 6e | 74 72 79 20 69 6e 74 6f |index en|try into|
|00001e60| 20 74 68 65 20 72 65 63 | 6f 72 64 73 20 76 61 72 | the rec|ords var|
|00001e70| 69 61 62 6c 65 20 61 6e | 64 20 74 68 65 20 69 6e |iable an|d the in|
|00001e80| 64 65 78 20 76 61 72 69 | 61 62 6c 65 73 2e 0d 2d |dex vari|ables..-|
|00001e90| 2d 20 28 6e 6f 74 65 20 | 73 70 65 63 69 61 6c 20 |- (note |special |
|00001ea0| 63 61 73 65 73 20 66 6f | 72 20 61 64 64 69 6e 67 |cases fo|r adding|
|00001eb0| 20 61 74 20 74 68 65 20 | 62 65 67 69 6e 6e 69 6e | at the |beginnin|
|00001ec0| 67 20 61 6e 64 20 74 68 | 65 20 65 6e 64 29 0d 0d |g and th|e end)..|
|00001ed0| 73 65 74 20 74 68 65 20 | 63 75 72 73 6f 72 20 74 |set the |cursor t|
|00001ee0| 6f 20 77 61 74 63 68 0d | 70 75 74 20 69 74 65 6d |o watch.|put item|
|00001ef0| 20 31 20 6f 66 20 69 6e | 72 65 63 6f 72 64 20 69 | 1 of in|record i|
|00001f00| 6e 74 6f 20 6e 61 6d 65 | 73 74 72 0d 70 75 74 20 |nto name|str.put |
|00001f10| 67 65 74 70 6f 73 69 74 | 69 6f 6e 28 6e 61 6d 65 |getposit|ion(name|
|00001f20| 73 74 72 29 20 69 6e 74 | 6f 20 69 6e 73 65 72 74 |str) int|o insert|
|00001f30| 69 6f 6e 70 6f 69 6e 74 | 0d 70 75 74 20 63 72 65 |ionpoint|.put cre|
|00001f40| 61 74 65 69 6e 64 65 78 | 65 6e 74 72 79 28 69 74 |ateindex|entry(it|
|00001f50| 65 6d 20 31 20 6f 66 20 | 69 6e 72 65 63 6f 72 64 |em 1 of |inrecord|
|00001f60| 2c 69 74 65 6d 20 35 20 | 6f 66 20 69 6e 72 65 63 |,item 5 |of inrec|
|00001f70| 6f 72 64 29 c2 0d 69 6e | 74 6f 20 69 6e 64 65 78 |ord)..in|to index|
|00001f80| 65 6e 74 72 79 0d 69 66 | 20 69 6e 73 65 72 74 69 |entry.if| inserti|
|00001f90| 6f 6e 70 6f 69 6e 74 20 | ad 20 30 20 74 68 65 6e |onpoint |. 0 then|
|00001fa0| 0d 70 75 74 20 72 65 74 | 75 72 6e 20 26 20 69 6e |.put ret|urn & in|
|00001fb0| 72 65 63 6f 72 64 20 61 | 66 74 65 72 c2 0d 6c 69 |record a|fter..li|
|00001fc0| 6e 65 20 69 6e 73 65 72 | 74 69 6f 6e 70 6f 69 6e |ne inser|tionpoin|
|00001fd0| 74 20 6f 66 20 61 6c 6c | 72 65 63 6f 72 64 73 0d |t of all|records.|
|00001fe0| 70 75 74 20 72 65 74 75 | 72 6e 20 26 20 69 6e 64 |put retu|rn & ind|
|00001ff0| 65 78 65 6e 74 72 79 20 | 61 66 74 65 72 20 6c 69 |exentry |after li|
|00002000| 6e 65 20 69 6e 73 65 72 | 74 69 6f 6e 70 6f 69 6e |ne inser|tionpoin|
|00002010| 74 20 6f 66 20 61 6c 6c | 69 6e 64 65 78 65 6e 74 |t of all|indexent|
|00002020| 72 69 65 73 0d 75 70 64 | 61 74 65 69 6e 64 65 78 |ries.upd|ateindex|
|00002030| 0d 65 6c 73 65 0d 70 75 | 74 20 69 6e 72 65 63 6f |.else.pu|t inreco|
|00002040| 72 64 20 26 20 72 65 74 | 75 72 6e 20 62 65 66 6f |rd & ret|urn befo|
|00002050| 72 65 c2 0d 6c 69 6e 65 | 20 69 6e 73 65 72 74 69 |re..line| inserti|
|00002060| 6f 6e 70 6f 69 6e 74 20 | 6f 66 20 61 6c 6c 72 65 |onpoint |of allre|
|00002070| 63 6f 72 64 73 0d 70 75 | 74 20 69 6e 64 65 78 65 |cords.pu|t indexe|
|00002080| 6e 74 72 79 20 26 20 72 | 65 74 75 72 6e 20 62 65 |ntry & r|eturn be|
|00002090| 66 6f 72 65 20 6c 69 6e | 65 20 31 20 6f 66 20 61 |fore lin|e 1 of a|
|000020a0| 6c 6c 69 6e 64 65 78 65 | 6e 74 72 69 65 73 0d 75 |llindexe|ntries.u|
|000020b0| 70 64 61 74 65 69 6e 64 | 65 78 0d 65 6e 64 20 69 |pdateind|ex.end i|
|000020c0| 66 0d 70 75 74 20 69 6e | 73 65 72 74 69 6f 6e 70 |f.put in|sertionp|
|000020d0| 6f 69 6e 74 2b 31 20 69 | 6e 74 6f 20 74 68 69 73 |oint+1 i|nto this|
|000020e0| 72 65 66 6e 6f 0d 64 69 | 73 70 6c 61 79 72 65 63 |refno.di|splayrec|
|000020f0| 6f 72 64 0d 65 6e 64 20 | 77 72 69 74 65 72 65 63 |ord.end |writerec|
|00002100| 6f 72 64 69 6e 0d 0d 0d | 66 75 6e 63 74 69 6f 6e |ordin...|function|
|00002110| 20 63 72 65 61 74 65 69 | 6e 64 65 78 65 6e 74 72 | createi|ndexentr|
|00002120| 79 20 6e 61 6d 65 73 74 | 72 2c 74 69 74 6c 65 73 |y namest|r,titles|
|00002130| 74 72 0d 0d 2d 2d 20 72 | 65 74 75 72 6e 73 20 61 |tr..-- r|eturns a|
|00002140| 20 73 70 65 63 69 61 6c | 6c 79 20 66 6f 72 6d 61 | special|ly forma|
|00002150| 74 74 65 64 20 69 6e 64 | 65 78 20 65 6e 74 72 79 |tted ind|ex entry|
|00002160| 0d 0d 72 65 74 75 72 6e | 20 70 61 64 6f 75 74 28 |..return| padout(|
|00002170| 72 65 6d 6f 76 65 63 6f | 6d 6d 61 28 6e 61 6d 65 |removeco|mma(name|
|00002180| 73 74 72 29 2c 32 30 29 | c2 0d 26 20 22 a5 22 20 |str),20)|..& "." |
|00002190| 26 20 72 65 6d 6f 76 65 | 63 6f 6d 6d 61 28 74 69 |& remove|comma(ti|
|000021a0| 74 6c 65 73 74 72 29 0d | 65 6e 64 20 63 72 65 61 |tlestr).|end crea|
|000021b0| 74 65 69 6e 64 65 78 65 | 6e 74 72 79 0d 0d 6f 6e |teindexe|ntry..on|
|000021c0| 20 73 65 74 72 65 6c 65 | 76 61 6e 63 65 0d 0d 2d | setrele|vance..-|
|000021d0| 2d 20 66 72 6f 6d 20 74 | 68 65 20 72 65 6c 65 76 |- from t|he relev|
|000021e0| 61 6e 63 65 20 6e 75 6d | 62 65 72 2c 20 74 68 69 |ance num|ber, thi|
|000021f0| 73 20 61 64 6a 75 73 74 | 73 20 74 68 65 20 70 6f |s adjust|s the po|
|00002200| 73 69 74 69 6f 6e 20 6f | 66 20 74 68 65 0d 2d 2d |sition o|f the.--|
|00002210| 20 73 6c 69 64 65 72 20 | 74 6f 20 6d 61 74 63 68 | slider |to match|
|00002220| 20 74 68 69 73 2c 20 61 | 6e 64 20 6d 61 6b 65 73 | this, a|nd makes|
|00002230| 20 69 74 20 73 6c 69 64 | 65 20 75 70 20 61 6e 64 | it slid|e up and|
|00002240| 20 64 6f 77 6e 2c 20 61 | 6e 64 20 6c 6f 6f 6b 0d | down, a|nd look.|
|00002250| 2d 2d 20 67 6f 6f 64 0d | 0d 67 65 74 20 62 67 20 |-- good.|.get bg |
|00002260| 66 69 65 6c 64 20 22 72 | 65 6c 65 76 61 6e 63 65 |field "r|elevance|
|00002270| 22 0d 0d 69 66 20 69 74 | 20 69 73 20 65 6d 70 74 |"..if it| is empt|
|00002280| 79 20 6f 72 20 69 74 20 | 69 73 20 6e 6f 74 20 61 |y or it |is not a|
|00002290| 20 6e 75 6d 62 65 72 20 | 74 68 65 6e 0d 70 75 74 | number |then.put|
|000022a0| 20 32 32 30 20 69 6e 74 | 6f 20 76 65 72 74 70 6f | 220 int|o vertpo|
|000022b0| 73 20 65 6c 73 65 0d 70 | 75 74 20 32 32 30 20 2d |s else.p|ut 220 -|
|000022c0| 20 28 69 74 20 2a 20 36 | 29 20 69 6e 74 6f 20 76 | (it * 6|) into v|
|000022d0| 65 72 74 70 6f 73 0d 65 | 6e 64 20 69 66 0d 0d 70 |ertpos.e|nd if..p|
|000022e0| 75 74 20 69 74 65 6d 20 | 32 20 6f 66 20 74 68 65 |ut item |2 of the|
|000022f0| 20 6c 6f 63 20 6f 66 20 | 62 67 20 62 75 74 74 6f | loc of |bg butto|
|00002300| 6e 20 22 73 6c 69 64 65 | 72 22 20 69 6e 74 6f 20 |n "slide|r" into |
|00002310| 76 62 75 74 74 6f 6e 70 | 6f 73 0d 0d 70 75 74 20 |vbuttonp|os..put |
|00002320| 28 76 65 72 74 70 6f 73 | 2d 31 37 38 29 2f 33 20 |(vertpos|-178)/3 |
|00002330| 69 6e 74 6f 20 76 65 72 | 74 70 6f 73 0d 70 75 74 |into ver|tpos.put|
|00002340| 20 28 76 62 75 74 74 6f | 6e 70 6f 73 2d 31 37 38 | (vbutto|npos-178|
|00002350| 29 2f 33 20 69 6e 74 6f | 20 76 62 75 74 74 6f 6e |)/3 into| vbutton|
|00002360| 70 6f 73 0d 0d 69 66 20 | 76 65 72 74 70 6f 73 3e |pos..if |vertpos>|
|00002370| 76 62 75 74 74 6f 6e 70 | 6f 73 20 74 68 65 6e 0d |vbuttonp|os then.|
|00002380| 72 65 70 65 61 74 20 77 | 69 74 68 20 78 3d 20 76 |repeat w|ith x= v|
|00002390| 62 75 74 74 6f 6e 70 6f | 73 20 74 6f 20 76 65 72 |buttonpo|s to ver|
|000023a0| 74 70 6f 73 0d 73 65 74 | 20 74 68 65 20 6c 6f 63 |tpos.set| the loc|
|000023b0| 20 6f 66 20 62 67 20 62 | 75 74 74 6f 6e 20 22 73 | of bg b|utton "s|
|000023c0| 6c 69 64 65 72 22 20 74 | 6f 20 31 36 33 2c 31 37 |lider" t|o 163,17|
|000023d0| 38 2b 20 78 2a 33 0d 65 | 6e 64 20 72 65 70 65 61 |8+ x*3.e|nd repea|
|000023e0| 74 20 65 6c 73 65 0d 69 | 66 20 76 65 72 74 70 6f |t else.i|f vertpo|
|000023f0| 73 3c 76 62 75 74 74 6f | 6e 70 6f 73 20 74 68 65 |s<vbutto|npos the|
|00002400| 6e 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 78 3d |n.repeat| with x=|
|00002410| 20 76 62 75 74 74 6f 6e | 70 6f 73 20 64 6f 77 6e | vbutton|pos down|
|00002420| 20 74 6f 20 76 65 72 74 | 70 6f 73 0d 73 65 74 20 | to vert|pos.set |
|00002430| 74 68 65 20 6c 6f 63 20 | 6f 66 20 62 67 20 62 75 |the loc |of bg bu|
|00002440| 74 74 6f 6e 20 22 73 6c | 69 64 65 72 22 20 74 6f |tton "sl|ider" to|
|00002450| 20 31 36 33 2c 31 37 38 | 2b 20 78 2a 33 0d 65 6e | 163,178|+ x*3.en|
|00002460| 64 20 72 65 70 65 61 74 | 0d 65 6e 64 20 69 66 0d |d repeat|.end if.|
|00002470| 65 6e 64 20 69 66 0d 0d | 65 6e 64 20 73 65 74 72 |end if..|end setr|
|00002480| 65 6c 65 76 61 6e 63 65 | 0d 0d 66 75 6e 63 74 69 |elevance|..functi|
|00002490| 6f 6e 20 67 65 74 70 6f | 73 69 74 69 6f 6e 20 68 |on getpo|sition h|
|000024a0| 69 74 6e 61 6d 65 0d 67 | 6c 6f 62 61 6c 20 61 6c |itname.g|lobal al|
|000024b0| 6c 72 65 63 6f 72 64 73 | 0d 0d 2d 2d 20 66 72 6f |lrecords|..-- fro|
|000024c0| 6d 20 74 68 65 20 31 73 | 74 20 61 75 74 68 6f 72 |m the 1s|t author|
|000024d0| 73 20 6e 61 6d 65 20 28 | 68 69 74 6e 61 6d 65 29 |s name (|hitname)|
|000024e0| 20 6f 66 20 61 20 72 65 | 63 6f 72 64 2c 20 61 6e | of a re|cord, an|
|000024f0| 64 20 74 68 65 20 6c 69 | 73 74 0d 2d 2d 20 6f 66 |d the li|st.-- of|
|00002500| 20 72 65 63 6f 72 64 73 | 20 28 61 6c 6c 72 65 63 | records| (allrec|
|00002510| 6f 72 64 73 29 2c 20 74 | 68 69 73 20 72 65 74 75 |ords), t|his retu|
|00002520| 72 6e 73 20 74 68 65 20 | 70 73 69 74 69 6f 6e 20 |rns the |psition |
|00002530| 77 68 65 72 65 20 74 68 | 65 0d 2d 2d 20 72 65 63 |where th|e.-- rec|
|00002540| 6f 72 64 20 6f 75 67 68 | 74 20 74 6f 20 67 6f 20 |ord ough|t to go |
|00002550| 28 61 20 73 69 6d 70 6c | 65 20 62 69 6e 61 72 79 |(a simpl|e binary|
|00002560| 20 73 65 61 72 63 68 29 | 2e 0d 0d 0d 70 75 74 20 | search)|....put |
|00002570| 6e 75 6d 62 65 72 6f 66 | 72 65 66 73 28 29 20 69 |numberof|refs() i|
|00002580| 6e 74 6f 20 6e 6f 6f 66 | 63 61 72 64 73 0d 70 75 |nto noof|cards.pu|
|00002590| 74 20 6e 6f 6f 66 63 61 | 72 64 73 20 69 6e 74 6f |t noofca|rds into|
|000025a0| 20 74 6f 70 0d 70 75 74 | 20 31 20 69 6e 74 6f 20 | top.put| 1 into |
|000025b0| 62 6f 74 0d 0d 70 75 74 | 20 74 72 75 6e 63 28 28 |bot..put| trunc((|
|000025c0| 74 6f 70 2d 62 6f 74 2b | 31 29 2f 32 29 20 69 6e |top-bot+|1)/2) in|
|000025d0| 74 6f 20 6d 69 64 0d 0d | 70 75 74 20 66 61 6c 73 |to mid..|put fals|
|000025e0| 65 20 69 6e 74 6f 20 68 | 69 74 70 6f 69 6e 74 0d |e into h|itpoint.|
|000025f0| 0d 0d 69 66 20 68 69 74 | 6e 61 6d 65 20 3c 20 69 |..if hit|name < i|
|00002600| 74 65 6d 20 31 20 6f 66 | 20 6c 69 6e 65 20 31 20 |tem 1 of| line 1 |
|00002610| 6f 66 20 61 6c 6c 72 65 | 63 6f 72 64 73 20 74 68 |of allre|cords th|
|00002620| 65 6e 0d 70 75 74 20 30 | 20 69 6e 74 6f 20 69 6e |en.put 0| into in|
|00002630| 73 65 72 74 69 6f 6e 70 | 6f 69 6e 74 20 65 6c 73 |sertionp|oint els|
|00002640| 65 0d 69 66 20 68 69 74 | 6e 61 6d 65 20 3e 20 69 |e.if hit|name > i|
|00002650| 74 65 6d 20 31 20 6f 66 | 20 6c 69 6e 65 20 6e 6f |tem 1 of| line no|
|00002660| 6f 66 63 61 72 64 73 20 | 6f 66 20 61 6c 6c 72 65 |ofcards |of allre|
|00002670| 63 6f 72 64 73 20 74 68 | 65 6e 0d 70 75 74 20 6e |cords th|en.put n|
|00002680| 6f 6f 66 63 61 72 64 73 | 20 69 6e 74 6f 20 69 6e |oofcards| into in|
|00002690| 73 65 72 74 69 6f 6e 70 | 6f 69 6e 74 20 65 6c 73 |sertionp|oint els|
|000026a0| 65 0d 0d 72 65 70 65 61 | 74 20 75 6e 74 69 6c 20 |e..repea|t until |
|000026b0| 68 69 74 70 6f 69 6e 74 | 0d 70 75 74 20 69 74 65 |hitpoint|.put ite|
|000026c0| 6d 20 31 20 6f 66 20 6c | 69 6e 65 20 6d 69 64 20 |m 1 of l|ine mid |
|000026d0| 6f 66 20 61 6c 6c 72 65 | 63 6f 72 64 73 20 69 6e |of allre|cords in|
|000026e0| 74 6f 20 6d 69 64 6e 61 | 6d 65 0d 69 66 20 6d 69 |to midna|me.if mi|
|000026f0| 64 6e 61 6d 65 20 69 73 | 20 68 69 74 6e 61 6d 65 |dname is| hitname|
|00002700| 20 74 68 65 6e 0d 70 75 | 74 20 74 72 75 65 20 69 | then.pu|t true i|
|00002710| 6e 74 6f 20 68 69 74 70 | 6f 69 6e 74 0d 70 75 74 |nto hitp|oint.put|
|00002720| 20 6d 69 64 20 69 6e 74 | 6f 20 69 6e 73 65 72 74 | mid int|o insert|
|00002730| 69 6f 6e 70 6f 69 6e 74 | 20 20 65 6c 73 65 0d 69 |ionpoint| else.i|
|00002740| 66 20 68 69 74 6e 61 6d | 65 20 3e 20 6d 69 64 6e |f hitnam|e > midn|
|00002750| 61 6d 65 20 74 68 65 6e | 0d 70 75 74 20 6d 69 64 |ame then|.put mid|
|00002760| 20 69 6e 74 6f 20 62 6f | 74 20 65 6c 73 65 0d 70 | into bo|t else.p|
|00002770| 75 74 20 6d 69 64 20 69 | 6e 74 6f 20 74 6f 70 0d |ut mid i|nto top.|
|00002780| 65 6e 64 20 69 66 0d 65 | 6e 64 20 69 66 0d 70 75 |end if.e|nd if.pu|
|00002790| 74 20 62 6f 74 2b 74 72 | 75 6e 63 28 28 74 6f 70 |t bot+tr|unc((top|
|000027a0| 2d 62 6f 74 29 2f 32 29 | 20 69 6e 74 6f 20 6d 69 |-bot)/2)| into mi|
|000027b0| 64 0d 0d 69 66 20 28 62 | 6f 74 20 3d 20 6d 69 64 |d..if (b|ot = mid|
|000027c0| 29 20 74 68 65 6e 0d 70 | 75 74 20 74 72 75 65 20 |) then.p|ut true |
|000027d0| 69 6e 74 6f 20 68 69 74 | 70 6f 69 6e 74 0d 70 75 |into hit|point.pu|
|000027e0| 74 20 6d 69 64 20 69 6e | 74 6f 20 69 6e 73 65 72 |t mid in|to inser|
|000027f0| 74 69 6f 6e 70 6f 69 6e | 74 0d 65 6e 64 20 69 66 |tionpoin|t.end if|
|00002800| 0d 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 0d 65 6e |..end re|peat..en|
|00002810| 64 20 69 66 0d 65 6e 64 | 20 69 66 0d 72 65 74 75 |d if.end| if.retu|
|00002820| 72 6e 20 69 6e 73 65 72 | 74 69 6f 6e 70 6f 69 6e |rn inser|tionpoin|
|00002830| 74 0d 65 6e 64 20 67 65 | 74 70 6f 73 69 74 69 6f |t.end ge|tpositio|
|00002840| 6e 0d 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 69 6e 73 |n...func|tion ins|
|00002850| 65 72 74 72 65 63 6f 72 | 64 20 66 31 2c 66 32 2c |ertrecor|d f1,f2,|
|00002860| 66 33 2c 66 34 2c 66 35 | 2c 66 36 2c 66 37 2c 66 |f3,f4,f5|,f6,f7,f|
|00002870| 38 2c 66 39 2c 66 31 30 | 0d 0d 2d 2d 20 66 6f 72 |8,f9,f10|..-- for|
|00002880| 6d 61 74 73 20 61 20 72 | 65 63 6f 72 64 20 72 65 |mats a r|ecord re|
|00002890| 61 64 79 20 66 6f 72 20 | 69 6e 73 65 72 74 69 6f |ady for |insertio|
|000028a0| 6e 0d 0d 72 65 74 75 72 | 6e 20 72 65 6d 6f 76 65 |n..retur|n remove|
|000028b0| 72 65 74 75 72 6e 28 72 | 65 70 6c 61 63 65 63 6f |return(r|eplaceco|
|000028c0| 6d 6d 61 28 66 31 29 29 | 20 26 20 22 2c 22 20 26 |mma(f1))| & "," &|
|000028d0| c2 0d 66 32 20 26 20 22 | 2c 22 20 26 c2 0d 66 33 |..f2 & "|," &..f3|
|000028e0| 20 26 20 22 2c 22 20 26 | c2 0d 66 34 20 26 20 22 | & "," &|..f4 & "|
|000028f0| 2c 22 20 26 c2 0d 66 35 | 20 26 20 22 2c 22 20 26 |," &..f5| & "," &|
|00002900| c2 0d 66 36 20 26 20 22 | 2c 22 20 26 c2 0d 66 37 |..f6 & "|," &..f7|
|00002910| 20 26 20 22 2c 22 20 26 | c2 0d 66 38 20 26 20 22 | & "," &|..f8 & "|
|00002920| 2c 22 20 26 c2 0d 66 39 | 20 26 20 22 2c 22 20 26 |," &..f9| & "," &|
|00002930| c2 0d 66 31 30 0d 65 6e | 64 20 69 6e 73 65 72 74 |..f10.en|d insert|
|00002940| 72 65 63 6f 72 64 0d 0d | 0d 6f 6e 20 6c 6f 63 6b |record..|.on lock|
|00002950| 61 6e 64 75 70 64 61 74 | 65 0d 0d 2d 2d 20 73 69 |andupdat|e..-- si|
|00002960| 6d 75 6c 61 74 65 73 20 | 74 68 65 20 75 73 65 72 |mulates |the user|
|00002970| 20 6c 6f 63 6b 69 6e 67 | 20 74 68 65 20 66 69 65 | locking| the fie|
|00002980| 6c 64 73 2c 20 66 6f 72 | 20 77 68 65 6e 20 79 6f |lds, for| when yo|
|00002990| 75 20 77 61 6e 74 0d 2d | 2d 20 74 6f 20 64 6f 20 |u want.-|- to do |
|000029a0| 69 74 20 69 6e 20 73 6f | 66 74 77 61 72 65 0d 0d |it in so|ftware..|
|000029b0| 73 65 6e 64 20 6d 6f 75 | 73 65 55 70 20 74 6f 20 |send mou|seUp to |
|000029c0| 62 67 20 62 75 74 74 6f | 6e 20 22 4c 6f 63 6b 20 |bg butto|n "Lock |
|000029d0| 66 69 65 6c 64 73 22 0d | 65 6e 64 20 6c 6f 63 6b |fields".|end lock|
|000029e0| 61 6e 64 75 70 64 61 74 | 65 0d 0d 6f 6e 20 73 65 |andupdat|e..on se|
|000029f0| 74 77 69 6e 64 6f 77 74 | 69 74 6c 65 0d 67 6c 6f |twindowt|itle.glo|
|00002a00| 62 61 6c 20 74 68 69 73 | 72 65 66 6e 6f 2c 77 4e |bal this|refno,wN|
|00002a10| 61 6d 65 0d 0d 2d 2d 20 | 73 65 74 73 20 74 68 65 |ame..-- |sets the|
|00002a20| 20 74 69 74 6c 65 20 6f | 66 20 74 68 65 20 77 69 | title o|f the wi|
|00002a30| 6e 64 6f 77 0d 0d 70 75 | 74 20 22 52 65 66 65 72 |ndow..pu|t "Refer|
|00002a40| 65 6e 63 65 22 20 26 26 | 20 74 68 69 73 72 65 66 |ence" &&| thisref|
|00002a50| 6e 6f 20 26 26 20 22 6f | 66 22 20 26 26 20 6e 75 |no && "o|f" && nu|
|00002a60| 6d 62 65 72 6f 66 72 65 | 66 73 28 29 20 69 6e 74 |mberofre|fs() int|
|00002a70| 6f 20 77 4e 61 6d 65 0d | 77 69 6e 64 6e 61 6d 65 |o wName.|windname|
|00002a80| 20 77 4e 61 6d 65 0d 73 | 68 6f 77 20 77 69 6e 64 | wName.s|how wind|
|00002a90| 6f 77 20 77 4e 61 6d 65 | 0d 65 6e 64 20 73 65 74 |ow wName|.end set|
|00002aa0| 77 69 6e 64 6f 77 74 69 | 74 6c 65 0d 0d 66 75 6e |windowti|tle..fun|
|00002ab0| 63 74 69 6f 6e 20 6e 75 | 6d 62 65 72 6f 66 72 65 |ction nu|mberofre|
|00002ac0| 66 73 0d 67 6c 6f 62 61 | 6c 20 61 6c 6c 72 65 63 |fs.globa|l allrec|
|00002ad0| 6f 72 64 73 0d 0d 2d 2d | 20 72 65 74 75 72 6e 73 |ords..--| returns|
|00002ae0| 20 77 69 74 68 20 74 68 | 65 20 6e 75 6d 62 65 72 | with th|e number|
|00002af0| 20 6f 66 20 72 65 66 65 | 72 65 6e 63 65 73 20 74 | of refe|rences t|
|00002b00| 68 65 72 65 20 61 72 65 | 0d 0d 72 65 74 75 72 6e |here are|..return|
|00002b10| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 6c | the num|ber of l|
|00002b20| 69 6e 65 73 20 69 6e 20 | 61 6c 6c 72 65 63 6f 72 |ines in |allrecor|
|00002b30| 64 73 0d 65 6e 64 20 6e | 75 6d 62 65 72 6f 66 72 |ds.end n|umberofr|
|00002b40| 65 66 73 0d 0d 66 75 6e | 63 74 69 6f 6e 20 67 65 |efs..fun|ction ge|
|00002b50| 74 72 65 63 6f 72 64 20 | 74 68 65 6e 75 6d 0d 67 |trecord |thenum.g|
|00002b60| 6c 6f 62 61 6c 20 61 6c | 6c 72 65 63 6f 72 64 73 |lobal al|lrecords|
|00002b70| 0d 0d 2d 2d 20 72 65 74 | 75 72 6e 73 20 77 69 74 |..-- ret|urns wit|
|00002b80| 68 20 72 65 63 6f 72 64 | 20 27 74 68 65 6e 75 6d |h record| 'thenum|
|00002b90| 27 0d 0d 72 65 74 75 72 | 6e 20 6c 69 6e 65 20 74 |'..retur|n line t|
|00002ba0| 68 65 6e 75 6d 20 6f 66 | 20 61 6c 6c 72 65 63 6f |henum of| allreco|
|00002bb0| 72 64 73 0d 65 6e 64 20 | 67 65 74 72 65 63 6f 72 |rds.end |getrecor|
|00002bc0| 64 0d 0d 6f 6e 20 64 69 | 73 70 6c 61 79 72 65 63 |d..on di|splayrec|
|00002bd0| 6f 72 64 0d 67 6c 6f 62 | 61 6c 20 74 68 69 73 72 |ord.glob|al thisr|
|00002be0| 65 66 6e 6f 2c 6e 6f 74 | 65 76 69 73 69 62 6c 65 |efno,not|evisible|
|00002bf0| 0d 0d 2d 2d 20 64 69 73 | 70 6c 61 79 73 20 61 20 |..-- dis|plays a |
|00002c00| 72 65 63 6f 72 64 2e 20 | 49 66 20 74 68 65 20 72 |record. |If the r|
|00002c10| 65 63 6f 72 64 20 6e 75 | 6d 62 65 72 20 74 6f 20 |ecord nu|mber to |
|00002c20| 62 65 20 64 69 73 70 6c | 61 79 65 64 0d 2d 2d 20 |be displ|ayed.-- |
|00002c30| 69 73 20 2d 31 2c 20 74 | 68 65 72 65 20 61 72 65 |is -1, t|here are|
|00002c40| 20 6e 6f 20 72 65 63 6f | 72 64 73 2c 20 73 6f 20 | no reco|rds, so |
|00002c50| 74 68 65 20 63 72 65 64 | 69 74 73 20 61 72 65 20 |the cred|its are |
|00002c60| 64 69 73 70 6c 61 79 65 | 64 20 69 6e 73 74 65 61 |displaye|d instea|
|00002c70| 64 0d 2d 2d 20 4f 74 68 | 65 72 77 69 73 65 20 74 |d.-- Oth|erwise t|
|00002c80| 68 65 20 72 65 63 6f 72 | 64 20 69 73 20 64 69 73 |he recor|d is dis|
|00002c90| 70 6c 61 79 65 64 20 77 | 69 74 68 20 62 6c 6f 62 |played w|ith blob|
|00002ca0| 73 20 72 65 70 6c 61 63 | 65 64 20 62 79 20 63 6f |s replac|ed by co|
|00002cb0| 6d 6d 61 73 2c 20 61 6e | 64 0d 2d 2d 20 6b 65 79 |mmas, an|d.-- key|
|00002cc0| 77 6f 72 64 73 20 70 72 | 6f 70 65 72 6c 79 20 66 |words pr|operly f|
|00002cd0| 6f 72 6d 61 74 74 65 64 | 2e 20 54 68 65 20 77 69 |ormatted|. The wi|
|00002ce0| 6e 64 6f 77 20 74 69 74 | 6c 65 20 69 73 20 63 68 |ndow tit|le is ch|
|00002cf0| 61 6e 67 65 64 2c 20 61 | 6e 64 20 74 68 65 0d 2d |anged, a|nd the.-|
|00002d00| 2d 20 72 65 6c 65 76 61 | 6e 63 65 20 73 6c 69 64 |- releva|nce slid|
|00002d10| 65 72 20 69 73 20 73 65 | 74 20 74 6f 20 69 74 73 |er is se|t to its|
|00002d20| 20 70 72 6f 70 65 72 20 | 70 6f 73 69 74 69 6f 6e | proper |position|
|00002d30| 2c 20 61 6e 64 20 74 68 | 65 20 6e 6f 74 65 73 20 |, and th|e notes |
|00002d40| 77 69 6e 64 6f 69 64 0d | 2d 2d 20 69 73 20 75 70 |windoid.|-- is up|
|00002d50| 64 61 74 65 64 20 69 66 | 20 6e 65 63 65 73 73 61 |dated if| necessa|
|00002d60| 72 79 0d 0d 67 6f 20 63 | 64 20 31 20 6f 66 20 74 |ry..go c|d 1 of t|
|00002d70| 68 69 73 20 73 74 61 63 | 6b 0d 0d 69 66 20 74 68 |his stac|k..if th|
|00002d80| 69 73 72 65 66 6e 6f 20 | 3d 20 2d 31 20 74 68 65 |isrefno |= -1 the|
|00002d90| 6e 0d 70 75 74 20 22 48 | 20 53 20 42 6c 6f 6f 6d |n.put "H| S Bloom|
|00002da0| 66 69 65 6c 64 2c 28 68 | 65 6e 72 79 40 64 63 73 |field,(h|enry@dcs|
|00002db0| 2e 71 6d 77 2e 61 63 2e | 75 6b 29 2c 2c 2c 50 65 |.qmw.ac.|uk),,,Pe|
|00002dc0| 72 73 6f 6e 61 6c 20 52 | 65 66 65 72 65 6e 63 65 |rsonal R|eference|
|00002dd0| 73 20 53 74 61 63 6b 22 | 20 26 20 72 65 74 75 72 |s Stack"| & retur|
|00002de0| 6e c2 0d 26 20 22 46 72 | 65 65 77 61 72 65 20 2d |n..& "Fr|eeware -|
|00002df0| 20 65 78 63 65 70 74 20 | 66 6f 72 20 63 65 72 74 | except |for cert|
|00002e00| 61 69 6e 20 65 78 74 65 | 72 6e 61 6c 73 20 63 6f |ain exte|rnals co|
|00002e10| 6e 74 61 69 6e 65 64 20 | 69 6e 20 74 68 69 73 20 |ntained |in this |
|00002e20| 73 74 61 63 6b 2c 22 20 | 26 c2 0d 22 20 a9 31 39 |stack," |&.." .19|
|00002e30| 39 31 20 48 65 6e 72 79 | 20 42 6c 6f 6f 6d 66 69 |91 Henry| Bloomfi|
|00002e40| 65 6c 64 22 20 26 20 72 | 65 74 75 72 6e 20 26 20 |eld" & r|eturn & |
|00002e50| 72 65 74 75 72 6e 20 26 | c2 0d 22 50 6c 65 61 73 |return &|.."Pleas|
|00002e60| 65 20 73 65 6e 64 20 6d | 65 20 62 75 67 20 72 65 |e send m|e bug re|
|00002e70| 70 6f 72 74 73 2f 20 63 | 72 69 74 69 63 69 73 6d |ports/ c|riticism|
|00002e80| 73 2f 20 73 75 67 67 65 | 73 74 69 6f 6e 73 20 66 |s/ sugge|stions f|
|00002e90| 6f 72 20 69 6d 70 72 6f | 76 65 6d 65 6e 74 20 65 |or impro|vement e|
|00002ea0| 74 63 2e 2c 22 20 26 c2 | 0d 22 44 65 70 74 20 6f |tc.," &.|."Dept o|
|00002eb0| 66 20 43 53 22 20 26 20 | 72 65 74 75 72 6e 20 26 |f CS" & |return &|
|00002ec0| 20 22 51 4d 57 22 c2 0d | 26 20 72 65 74 75 72 6e | "QMW"..|& return|
|00002ed0| 20 26 20 22 55 6e 69 76 | 20 6f 66 20 4c 6f 6e 64 | & "Univ| of Lond|
|00002ee0| 6f 6e 22 20 26 20 72 65 | 74 75 72 6e 20 26 20 22 |on" & re|turn & "|
|00002ef0| 4d 69 6c 65 20 45 6e 64 | 20 52 6f 61 64 22 c2 0d |Mile End| Road"..|
|00002f00| 26 20 72 65 74 75 72 6e | 20 26 20 22 4c 6f 6e 64 |& return| & "Lond|
|00002f10| 6f 6e 20 45 31 20 34 4e | 53 2c 2c 22 20 69 6e 74 |on E1 4N|S,," int|
|00002f20| 6f 20 74 68 69 73 72 65 | 63 6f 72 64 0d 70 75 74 |o thisre|cord.put|
|00002f30| 20 30 20 69 6e 74 6f 20 | 74 68 69 73 72 65 66 6e | 0 into |thisrefn|
|00002f40| 6f 20 65 6c 73 65 0d 69 | 66 20 74 68 69 73 72 65 |o else.i|f thisre|
|00002f50| 66 6e 6f 3e 20 6e 75 6d | 62 65 72 6f 66 72 65 66 |fno> num|berofref|
|00002f60| 73 28 29 20 74 68 65 6e | 0d 70 75 74 20 31 20 69 |s() then|.put 1 i|
|00002f70| 6e 74 6f 20 74 68 69 73 | 72 65 66 6e 6f 20 65 6c |nto this|refno el|
|00002f80| 73 65 0d 69 66 20 74 68 | 69 73 72 65 66 6e 6f 3c |se.if th|isrefno<|
|00002f90| 31 20 74 68 65 6e 0d 70 | 75 74 20 6e 75 6d 62 65 |1 then.p|ut numbe|
|00002fa0| 72 6f 66 72 65 66 73 28 | 29 20 69 6e 74 6f 20 74 |rofrefs(|) into t|
|00002fb0| 68 69 73 72 65 66 6e 6f | 0d 65 6e 64 20 69 66 0d |hisrefno|.end if.|
|00002fc0| 65 6e 64 20 69 66 0d 70 | 75 74 20 67 65 74 72 65 |end if.p|ut getre|
|00002fd0| 63 6f 72 64 28 74 68 69 | 73 72 65 66 6e 6f 29 20 |cord(thi|srefno) |
|00002fe0| 69 6e 74 6f 20 74 68 69 | 73 72 65 63 6f 72 64 0d |into thi|srecord.|
|00002ff0| 65 6e 64 20 69 66 0d 0d | 0d 70 75 74 20 72 65 70 |end if..|.put rep|
|00003000| 6c 61 63 65 62 6c 6f 62 | 28 69 74 65 6d 20 31 20 |laceblob|(item 1 |
|00003010| 6f 66 20 74 68 69 73 72 | 65 63 6f 72 64 29 20 69 |of thisr|ecord) i|
|00003020| 6e 74 6f 20 62 67 20 66 | 69 65 6c 64 20 22 61 75 |nto bg f|ield "au|
|00003030| 74 68 6f 72 31 22 0d 70 | 75 74 20 72 65 70 6c 61 |thor1".p|ut repla|
|00003040| 63 65 62 6c 6f 62 28 69 | 74 65 6d 20 32 20 6f 66 |ceblob(i|tem 2 of|
|00003050| 20 74 68 69 73 72 65 63 | 6f 72 64 29 20 69 6e 74 | thisrec|ord) int|
|00003060| 6f 20 62 67 20 66 69 65 | 6c 64 20 22 61 75 74 68 |o bg fie|ld "auth|
|00003070| 6f 72 32 22 0d 70 75 74 | 20 72 65 70 6c 61 63 65 |or2".put| replace|
|00003080| 62 6c 6f 62 28 69 74 65 | 6d 20 33 20 6f 66 20 74 |blob(ite|m 3 of t|
|00003090| 68 69 73 72 65 63 6f 72 | 64 29 20 69 6e 74 6f 20 |hisrecor|d) into |
|000030a0| 62 67 20 66 69 65 6c 64 | 20 22 61 75 74 68 6f 72 |bg field| "author|
|000030b0| 33 22 0d 70 75 74 20 72 | 65 70 6c 61 63 65 62 6c |3".put r|eplacebl|
|000030c0| 6f 62 28 69 74 65 6d 20 | 34 20 6f 66 20 74 68 69 |ob(item |4 of thi|
|000030d0| 73 72 65 63 6f 72 64 29 | 20 69 6e 74 6f 20 62 67 |srecord)| into bg|
|000030e0| 20 66 69 65 6c 64 20 22 | 61 75 74 68 6f 72 34 22 | field "|author4"|
|000030f0| 0d 70 75 74 20 72 65 70 | 6c 61 63 65 62 6c 6f 62 |.put rep|laceblob|
|00003100| 28 69 74 65 6d 20 35 20 | 6f 66 20 74 68 69 73 72 |(item 5 |of thisr|
|00003110| 65 63 6f 72 64 29 20 69 | 6e 74 6f 20 62 67 20 66 |ecord) i|nto bg f|
|00003120| 69 65 6c 64 20 22 74 69 | 74 6c 65 22 0d 70 75 74 |ield "ti|tle".put|
|00003130| 20 72 65 70 6c 61 63 65 | 62 6c 6f 62 28 69 74 65 | replace|blob(ite|
|00003140| 6d 20 36 20 6f 66 20 74 | 68 69 73 72 65 63 6f 72 |m 6 of t|hisrecor|
|00003150| 64 29 20 69 6e 74 6f 20 | 62 67 20 66 69 65 6c 64 |d) into |bg field|
|00003160| 20 22 77 68 65 72 65 69 | 74 69 73 22 0d 70 75 74 | "wherei|tis".put|
|00003170| 20 72 65 70 6c 61 63 65 | 62 6c 6f 62 28 69 74 65 | replace|blob(ite|
|00003180| 6d 20 37 20 6f 66 20 74 | 68 69 73 72 65 63 6f 72 |m 7 of t|hisrecor|
|00003190| 64 29 20 69 6e 74 6f 20 | 62 67 20 66 69 65 6c 64 |d) into |bg field|
|000031a0| 20 22 63 6f 6d 6d 65 6e | 74 73 22 0d 70 75 74 20 | "commen|ts".put |
|000031b0| 66 6f 72 6d 61 74 6b 65 | 79 77 6f 72 64 73 28 72 |formatke|ywords(r|
|000031c0| 65 70 6c 61 63 65 62 6c | 6f 62 28 69 74 65 6d 20 |eplacebl|ob(item |
|000031d0| 38 20 6f 66 20 74 68 69 | 73 72 65 63 6f 72 64 29 |8 of thi|srecord)|
|000031e0| 29 c2 0d 69 6e 74 6f 20 | 62 67 20 66 69 65 6c 64 |)..into |bg field|
|000031f0| 20 22 70 65 72 73 6f 6e | 61 6c 20 6b 65 79 77 6f | "person|al keywo|
|00003200| 72 64 73 22 0d 70 75 74 | 20 72 65 70 6c 61 63 65 |rds".put| replace|
|00003210| 62 6c 6f 62 28 69 74 65 | 6d 20 39 20 6f 66 20 74 |blob(ite|m 9 of t|
|00003220| 68 69 73 72 65 63 6f 72 | 64 29 20 69 6e 74 6f 20 |hisrecor|d) into |
|00003230| 62 67 20 66 69 65 6c 64 | 20 22 72 65 6c 65 76 61 |bg field| "releva|
|00003240| 6e 63 65 22 0d 70 75 74 | 20 72 65 70 6c 61 63 65 |nce".put| replace|
|00003250| 62 6c 6f 62 28 69 74 65 | 6d 20 31 30 20 6f 66 20 |blob(ite|m 10 of |
|00003260| 74 68 69 73 72 65 63 6f | 72 64 29 20 69 6e 74 6f |thisreco|rd) into|
|00003270| 20 62 67 20 66 69 65 6c | 64 20 22 64 61 74 65 22 | bg fiel|d "date"|
|00003280| 0d 0d 73 65 74 72 65 6c | 65 76 61 6e 63 65 0d 73 |..setrel|evance.s|
|00003290| 65 74 77 69 6e 64 6f 77 | 74 69 74 6c 65 0d 0d 69 |etwindow|title..i|
|000032a0| 66 20 6e 6f 74 65 76 69 | 73 69 62 6c 65 20 74 68 |f notevi|sible th|
|000032b0| 65 6e 0d 73 65 74 20 74 | 68 65 20 74 65 78 74 20 |en.set t|he text |
|000032c0| 6f 66 20 77 69 6e 64 6f | 77 20 22 4e 6f 74 65 73 |of windo|w "Notes|
|000032d0| 22 20 74 6f 20 62 67 20 | 66 69 65 6c 64 20 22 63 |" to bg |field "c|
|000032e0| 6f 6d 6d 65 6e 74 73 22 | 0d 65 6e 64 20 69 66 0d |omments"|.end if.|
|000032f0| 0d 65 6e 64 20 64 69 73 | 70 6c 61 79 72 65 63 6f |.end dis|playreco|
|00003300| 72 64 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 66 6f 72 |rd..func|tion for|
|00003310| 6d 61 74 6b 65 79 77 6f | 72 64 73 20 69 6e 73 74 |matkeywo|rds inst|
|00003320| 72 69 6e 67 0d 0d 2d 2d | 20 66 72 6f 6d 20 61 20 |ring..--| from a |
|00003330| 6c 69 73 74 20 6f 66 20 | 6b 65 79 77 6f 72 64 73 |list of |keywords|
|00003340| 20 28 c7 6b 65 79 31 c8 | c7 6b 65 79 32 c8 c7 6b | (.key1.|.key2..k|
|00003350| 65 79 33 c8 20 65 74 63 | 2e 29 20 72 65 74 75 72 |ey3. etc|.) retur|
|00003360| 6e 73 20 61 20 72 65 74 | 75 72 6e 0d 2d 2d 20 73 |ns a ret|urn.-- s|
|00003370| 65 70 61 72 61 74 65 64 | 20 6c 69 73 74 20 6f 66 |eparated| list of|
|00003380| 20 6b 65 79 77 6f 72 64 | 73 0d 0d 70 75 74 20 66 | keyword|s..put f|
|00003390| 61 6c 73 65 20 69 6e 74 | 6f 20 61 6c 6c 64 6f 6e |alse int|o alldon|
|000033a0| 65 0d 72 65 70 65 61 74 | 20 75 6e 74 69 6c 20 61 |e.repeat| until a|
|000033b0| 6c 6c 64 6f 6e 65 0d 67 | 65 74 20 6f 66 66 73 65 |lldone.g|et offse|
|000033c0| 74 28 22 c8 22 2c 69 6e | 73 74 72 69 6e 67 29 0d |t(".",in|string).|
|000033d0| 69 66 20 69 74 20 20 ad | 20 30 20 20 74 68 65 6e |if it .| 0 then|
|000033e0| 0d 70 75 74 20 72 65 74 | 75 72 6e 20 69 6e 74 6f |.put ret|urn into|
|000033f0| 20 63 68 61 72 20 69 74 | 20 6f 66 20 69 6e 73 74 | char it| of inst|
|00003400| 72 69 6e 67 20 65 6c 73 | 65 0d 70 75 74 20 74 72 |ring els|e.put tr|
|00003410| 75 65 20 69 6e 74 6f 20 | 61 6c 6c 64 6f 6e 65 0d |ue into |alldone.|
|00003420| 65 6e 64 20 69 66 0d 65 | 6e 64 20 72 65 70 65 61 |end if.e|nd repea|
|00003430| 74 0d 0d 70 75 74 20 66 | 61 6c 73 65 20 69 6e 74 |t..put f|alse int|
|00003440| 6f 20 61 6c 6c 64 6f 6e | 65 0d 72 65 70 65 61 74 |o alldon|e.repeat|
|00003450| 20 75 6e 74 69 6c 20 61 | 6c 6c 64 6f 6e 65 0d 67 | until a|lldone.g|
|00003460| 65 74 20 6f 66 66 73 65 | 74 28 22 c7 22 2c 69 6e |et offse|t(".",in|
|00003470| 73 74 72 69 6e 67 29 0d | 69 66 20 69 74 20 20 ad |string).|if it .|
|00003480| 20 30 20 20 74 68 65 6e | 0d 70 75 74 20 65 6d 70 | 0 then|.put emp|
|00003490| 74 79 20 69 6e 74 6f 20 | 63 68 61 72 20 69 74 20 |ty into |char it |
|000034a0| 6f 66 20 69 6e 73 74 72 | 69 6e 67 20 65 6c 73 65 |of instr|ing else|
|000034b0| 0d 70 75 74 20 74 72 75 | 65 20 69 6e 74 6f 20 61 |.put tru|e into a|
|000034c0| 6c 6c 64 6f 6e 65 0d 65 | 6e 64 20 69 66 0d 65 6e |lldone.e|nd if.en|
|000034d0| 64 20 72 65 70 65 61 74 | 0d 0d 72 65 74 75 72 6e |d repeat|..return|
|000034e0| 20 69 6e 73 74 72 69 6e | 67 0d 0d 65 6e 64 20 66 | instrin|g..end f|
|000034f0| 6f 72 6d 61 74 6b 65 79 | 77 6f 72 64 73 0d 0d 66 |ormatkey|words..f|
|00003500| 75 6e 63 74 69 6f 6e 20 | 73 68 6f 72 74 66 69 6c |unction |shortfil|
|00003510| 65 6e 61 6d 65 20 69 6e | 73 74 72 69 6e 67 0d 0d |ename in|string..|
|00003520| 2d 2d 20 66 72 6f 6d 20 | 61 20 66 75 6c 6c 20 70 |-- from |a full p|
|00003530| 61 74 68 6e 61 6d 65 2c | 20 72 65 74 75 72 6e 73 |athname,| returns|
|00003540| 20 74 68 65 20 61 63 74 | 75 61 6c 20 6e 61 6d 65 | the act|ual name|
|00003550| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 0d 0d 70 75 | of the |file..pu|
|00003560| 74 20 66 61 6c 73 65 20 | 69 6e 74 6f 20 61 6c 6c |t false |into all|
|00003570| 64 6f 6e 65 0d 70 75 74 | 20 30 20 69 6e 74 6f 20 |done.put| 0 into |
|00003580| 6c 61 73 74 66 6f 75 6e | 64 70 6f 69 6e 74 0d 72 |lastfoun|dpoint.r|
|00003590| 65 70 65 61 74 20 75 6e | 74 69 6c 20 61 6c 6c 64 |epeat un|til alld|
|000035a0| 6f 6e 65 0d 67 65 74 20 | 6f 66 66 73 65 74 28 22 |one.get |offset("|
|000035b0| 3a 22 2c 69 6e 73 74 72 | 69 6e 67 29 0d 69 66 20 |:",instr|ing).if |
|000035c0| 69 74 20 69 73 20 6e 6f | 74 20 30 20 74 68 65 6e |it is no|t 0 then|
|000035d0| 0d 70 75 74 20 69 74 20 | 69 6e 74 6f 20 6c 61 73 |.put it |into las|
|000035e0| 74 66 6f 75 6e 64 70 6f | 69 6e 74 0d 70 75 74 20 |tfoundpo|int.put |
|000035f0| 22 2f 22 20 69 6e 74 6f | 20 63 68 61 72 20 69 74 |"/" into| char it|
|00003600| 20 6f 66 20 69 6e 73 74 | 72 69 6e 67 20 65 6c 73 | of inst|ring els|
|00003610| 65 0d 70 75 74 20 74 72 | 75 65 20 69 6e 74 6f 20 |e.put tr|ue into |
|00003620| 61 6c 6c 64 6f 6e 65 0d | 65 6e 64 20 69 66 0d 65 |alldone.|end if.e|
|00003630| 6e 64 20 72 65 70 65 61 | 74 0d 70 75 74 20 63 68 |nd repea|t.put ch|
|00003640| 61 72 20 6c 61 73 74 66 | 6f 75 6e 64 70 6f 69 6e |ar lastf|oundpoin|
|00003650| 74 2b 31 20 74 6f 20 6c | 65 6e 67 74 68 28 69 6e |t+1 to l|ength(in|
|00003660| 73 74 72 69 6e 67 29 20 | 6f 66 20 69 6e 73 74 72 |string) |of instr|
|00003670| 69 6e 67 20 69 6e 74 6f | 20 69 6e 73 74 72 69 6e |ing into| instrin|
|00003680| 67 0d 72 65 74 75 72 6e | 20 69 6e 73 74 72 69 6e |g.return| instrin|
|00003690| 67 0d 65 6e 64 20 73 68 | 6f 72 74 66 69 6c 65 6e |g.end sh|ortfilen|
|000036a0| 61 6d 65 0d 0d 66 75 6e | 63 74 69 6f 6e 20 72 65 |ame..fun|ction re|
|000036b0| 70 6c 61 63 65 63 6f 6d | 6d 61 20 69 6e 73 74 72 |placecom|ma instr|
|000036c0| 69 6e 67 0d 0d 2d 2d 20 | 72 65 70 6c 61 63 65 73 |ing..-- |replaces|
|000036d0| 20 63 6f 6d 6d 61 73 20 | 62 79 20 62 6c 6f 62 73 | commas |by blobs|
|000036e0| 20 69 6e 20 61 20 73 74 | 72 69 6e 67 0d 0d 70 75 | in a st|ring..pu|
|000036f0| 74 20 66 61 6c 73 65 20 | 69 6e 74 6f 20 61 6c 6c |t false |into all|
|00003700| 64 6f 6e 65 0d 72 65 70 | 65 61 74 20 75 6e 74 69 |done.rep|eat unti|
|00003710| 6c 20 61 6c 6c 64 6f 6e | 65 0d 0d 67 65 74 20 6f |l alldon|e..get o|
|00003720| 66 66 73 65 74 28 22 2c | 22 2c 69 6e 73 74 72 69 |ffset(",|",instri|
|00003730| 6e 67 29 0d 69 66 20 69 | 74 20 69 73 20 6e 6f 74 |ng).if i|t is not|
|00003740| 20 30 20 74 68 65 6e 0d | 70 75 74 20 22 d7 22 20 | 0 then.|put "." |
|00003750| 69 6e 74 6f 20 63 68 61 | 72 20 69 74 20 6f 66 20 |into cha|r it of |
|00003760| 69 6e 73 74 72 69 6e 67 | 20 65 6c 73 65 0d 70 75 |instring| else.pu|
|00003770| 74 20 74 72 75 65 20 69 | 6e 74 6f 20 61 6c 6c 64 |t true i|nto alld|
|00003780| 6f 6e 65 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 72 |one.end |if.end r|
|00003790| 65 70 65 61 74 0d 72 65 | 74 75 72 6e 20 69 6e 73 |epeat.re|turn ins|
|000037a0| 74 72 69 6e 67 0d 0d 65 | 6e 64 20 72 65 70 6c 61 |tring..e|nd repla|
|000037b0| 63 65 63 6f 6d 6d 61 0d | 0d 66 75 6e 63 74 69 6f |cecomma.|.functio|
|000037c0| 6e 20 72 65 70 6c 61 63 | 65 62 6c 6f 62 20 69 6e |n replac|eblob in|
|000037d0| 73 74 72 69 6e 67 0d 0d | 2d 2d 20 72 65 70 6c 61 |string..|-- repla|
|000037e0| 63 65 73 20 62 6c 6f 62 | 73 20 62 79 20 63 6f 6d |ces blob|s by com|
|000037f0| 6d 61 73 20 69 6e 20 61 | 20 73 74 72 69 6e 67 0d |mas in a| string.|
|00003800| 0d 0d 70 75 74 20 66 61 | 6c 73 65 20 69 6e 74 6f |..put fa|lse into|
|00003810| 20 61 6c 6c 64 6f 6e 65 | 0d 72 65 70 65 61 74 20 | alldone|.repeat |
|00003820| 75 6e 74 69 6c 20 61 6c | 6c 64 6f 6e 65 0d 0d 67 |until al|ldone..g|
|00003830| 65 74 20 6f 66 66 73 65 | 74 28 22 d7 22 2c 69 6e |et offse|t(".",in|
|00003840| 73 74 72 69 6e 67 29 0d | 69 66 20 69 74 20 69 73 |string).|if it is|
|00003850| 20 6e 6f 74 20 30 20 74 | 68 65 6e 0d 70 75 74 20 | not 0 t|hen.put |
|00003860| 22 2c 22 20 69 6e 74 6f | 20 63 68 61 72 20 69 74 |"," into| char it|
|00003870| 20 6f 66 20 69 6e 73 74 | 72 69 6e 67 20 65 6c 73 | of inst|ring els|
|00003880| 65 0d 70 75 74 20 74 72 | 75 65 20 69 6e 74 6f 20 |e.put tr|ue into |
|00003890| 61 6c 6c 64 6f 6e 65 0d | 65 6e 64 20 69 66 0d 65 |alldone.|end if.e|
|000038a0| 6e 64 20 72 65 70 65 61 | 74 0d 72 65 74 75 72 6e |nd repea|t.return|
|000038b0| 20 69 6e 73 74 72 69 6e | 67 0d 0d 65 6e 64 20 72 | instrin|g..end r|
|000038c0| 65 70 6c 61 63 65 62 6c | 6f 62 0d 0d 66 75 6e 63 |eplacebl|ob..func|
|000038d0| 74 69 6f 6e 20 72 65 6d | 6f 76 65 52 65 74 75 72 |tion rem|oveRetur|
|000038e0| 6e 20 69 6e 73 74 72 69 | 6e 67 0d 0d 2d 2d 20 74 |n instri|ng..-- t|
|000038f0| 61 6b 65 73 20 74 68 65 | 20 72 65 74 75 72 6e 73 |akes the| returns|
|00003900| 20 6f 75 74 20 6f 66 20 | 61 20 73 74 72 69 6e 67 | out of |a string|
|00003910| 0d 0d 70 75 74 20 66 61 | 6c 73 65 20 69 6e 74 6f |..put fa|lse into|
|00003920| 20 61 6c 6c 64 6f 6e 65 | 0d 72 65 70 65 61 74 20 | alldone|.repeat |
|00003930| 75 6e 74 69 6c 20 61 6c | 6c 64 6f 6e 65 0d 67 65 |until al|ldone.ge|
|00003940| 74 20 6f 66 66 73 65 74 | 28 72 65 74 75 72 6e 2c |t offset|(return,|
|00003950| 69 6e 73 74 72 69 6e 67 | 29 0d 69 66 20 69 74 20 |instring|).if it |
|00003960| 69 73 20 6e 6f 74 20 30 | 20 74 68 65 6e 0d 70 75 |is not 0| then.pu|
|00003970| 74 20 22 20 22 20 69 6e | 74 6f 20 63 68 61 72 20 |t " " in|to char |
|00003980| 69 74 20 6f 66 20 69 6e | 73 74 72 69 6e 67 20 65 |it of in|string e|
|00003990| 6c 73 65 0d 70 75 74 20 | 74 72 75 65 20 69 6e 74 |lse.put |true int|
|000039a0| 6f 20 61 6c 6c 64 6f 6e | 65 0d 65 6e 64 20 69 66 |o alldon|e.end if|
|000039b0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 72 65 74 75 |.end rep|eat.retu|
|000039c0| 72 6e 20 69 6e 73 74 72 | 69 6e 67 0d 65 6e 64 20 |rn instr|ing.end |
|000039d0| 72 65 6d 6f 76 65 72 65 | 74 75 72 6e 0d 0d 0d 66 |removere|turn...f|
|000039e0| 75 6e 63 74 69 6f 6e 20 | 72 65 6d 6f 76 65 63 6f |unction |removeco|
|000039f0| 6d 6d 61 20 74 68 65 73 | 74 72 69 6e 67 0d 0d 2d |mma thes|tring..-|
|00003a00| 2d 20 74 61 6b 65 73 20 | 63 6f 6d 6d 61 73 20 6f |- takes |commas o|
|00003a10| 75 74 20 6f 66 20 61 20 | 73 74 72 69 6e 67 0d 0d |ut of a |string..|
|00003a20| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 74 |put empt|y into t|
|00003a30| 68 65 6e 65 77 73 74 72 | 69 6e 67 0d 69 66 20 74 |henewstr|ing.if t|
|00003a40| 68 65 73 74 72 69 6e 67 | 20 69 73 20 6e 6f 74 20 |hestring| is not |
|00003a50| 65 6d 70 74 79 20 74 68 | 65 6e 0d 0d 72 65 70 65 |empty th|en..repe|
|00003a60| 61 74 20 77 69 74 68 20 | 69 20 3d 20 31 20 74 6f |at with |i = 1 to|
|00003a70| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 63 | the num|ber of c|
|00003a80| 68 61 72 73 20 69 6e 20 | 74 68 65 53 74 72 69 6e |hars in |theStrin|
|00003a90| 67 0d 70 75 74 20 63 68 | 61 72 20 69 20 6f 66 20 |g.put ch|ar i of |
|00003aa0| 74 68 65 53 74 72 69 6e | 67 20 69 6e 74 6f 20 74 |theStrin|g into t|
|00003ab0| 65 6d 70 0d 69 66 20 74 | 65 6d 70 20 69 73 20 6e |emp.if t|emp is n|
|00003ac0| 6f 74 20 22 2c 22 20 74 | 68 65 6e 0d 70 75 74 20 |ot "," t|hen.put |
|00003ad0| 74 65 6d 70 20 61 66 74 | 65 72 20 74 68 65 6e 65 |temp aft|er thene|
|00003ae0| 77 53 74 72 69 6e 67 0d | 65 6e 64 20 69 66 0d 0d |wString.|end if..|
|00003af0| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 69 |end repe|at.end i|
|00003b00| 66 0d 0d 72 65 74 75 72 | 6e 20 74 68 65 6e 65 77 |f..retur|n thenew|
|00003b10| 53 74 72 69 6e 67 0d 65 | 6e 64 20 72 65 6d 6f 76 |String.e|nd remov|
|00003b20| 65 63 6f 6d 6d 61 0d 0d | 6f 6e 20 73 68 6f 77 4e |ecomma..|on showN|
|00003b30| 6f 74 65 73 0d 67 6c 6f | 62 61 6c 20 6e 6f 74 65 |otes.glo|bal note|
|00003b40| 76 69 73 69 62 6c 65 0d | 0d 2d 2d 74 6f 67 67 6c |visible.|.--toggl|
|00003b50| 65 73 20 74 68 65 20 6e | 6f 74 65 73 20 77 69 6e |es the n|otes win|
|00003b60| 64 6f 69 64 0d 0d 69 66 | 20 6e 6f 74 65 56 69 73 |doid..if| noteVis|
|00003b70| 69 62 6c 65 20 69 73 20 | 66 61 6c 73 65 20 74 68 |ible is |false th|
|00003b80| 65 6e 0d 70 75 74 20 22 | 37 2c 31 36 39 2c 32 30 |en.put "|7,169,20|
|00003b90| 36 2c 32 33 33 22 20 69 | 6e 74 6f 20 6c 6f 63 73 |6,233" i|nto locs|
|00003ba0| 74 72 0d 74 65 78 74 6f | 69 64 20 22 4e 6f 74 65 |tr.texto|id "Note|
|00003bb0| 73 22 2c 62 67 20 66 69 | 65 6c 64 20 22 63 6f 6d |s",bg fi|eld "com|
|00003bc0| 6d 65 6e 74 73 22 2c 6c | 6f 63 73 74 72 2c 22 36 |ments",l|ocstr,"6|
|00003bd0| 30 30 30 30 20 36 30 30 | 30 30 20 36 30 30 30 30 |0000 600|00 60000|
|00003be0| 2c 31 38 30 30 30 20 31 | 38 30 30 30 20 31 38 30 |,18000 1|8000 180|
|00003bf0| 30 30 22 0d 70 75 74 20 | 74 72 75 65 20 69 6e 74 |00".put |true int|
|00003c00| 6f 20 6e 6f 74 65 56 69 | 73 69 62 6c 65 20 65 6c |o noteVi|sible el|
|00003c10| 73 65 0d 63 6c 6f 73 65 | 20 77 69 6e 64 6f 77 20 |se.close| window |
|00003c20| 22 4e 6f 74 65 73 22 0d | 65 6e 64 20 69 66 0d 0d |"Notes".|end if..|
|00003c30| 65 6e 64 20 73 68 6f 77 | 4e 6f 74 65 73 0d 0d 6f |end show|Notes..o|
|00003c40| 6e 20 73 68 6f 77 6e 61 | 76 69 67 61 74 6f 72 0d |n showna|vigator.|
|00003c50| 67 6c 6f 62 61 6c 20 6e | 61 76 69 67 61 74 6f 72 |global n|avigator|
|00003c60| 56 69 73 69 62 6c 65 0d | 0d 2d 2d 74 6f 67 67 6c |Visible.|.--toggl|
|00003c70| 65 73 20 74 68 65 20 6e | 61 76 69 67 61 74 6f 72 |es the n|avigator|
|00003c80| 20 77 69 6e 64 6f 69 64 | 0d 0d 69 66 20 6e 61 76 | windoid|..if nav|
|00003c90| 69 67 61 74 6f 72 56 69 | 73 69 62 6c 65 20 69 73 |igatorVi|sible is|
|00003ca0| 20 66 61 6c 73 65 20 74 | 68 65 6e 0d 70 61 6c 65 | false t|hen.pale|
|00003cb0| 74 74 65 20 22 6e 61 76 | 69 67 61 74 6f 72 22 2c |tte "nav|igator",|
|00003cc0| 22 33 32 30 2c 32 32 30 | 22 0d 70 75 74 20 74 72 |"320,220|".put tr|
|00003cd0| 75 65 20 69 6e 74 6f 20 | 6e 61 76 69 67 61 74 6f |ue into |navigato|
|00003ce0| 72 56 69 73 69 62 6c 65 | 20 65 6c 73 65 0d 63 6c |rVisible| else.cl|
|00003cf0| 6f 73 65 20 77 69 6e 64 | 6f 77 20 22 4e 61 76 69 |ose wind|ow "Navi|
|00003d00| 67 61 74 6f 72 22 0d 65 | 6e 64 20 69 66 0d 65 6e |gator".e|nd if.en|
|00003d10| 64 20 73 68 6f 77 6e 61 | 76 69 67 61 74 6f 72 0d |d showna|vigator.|
|00003d20| 0d 6f 6e 20 73 68 6f 77 | 49 6e 64 65 78 0d 67 6c |.on show|Index.gl|
|00003d30| 6f 62 61 6c 20 69 6e 64 | 65 78 56 69 73 69 62 6c |obal ind|exVisibl|
|00003d40| 65 0d 0d 2d 2d 74 6f 67 | 67 6c 65 73 20 74 68 65 |e..--tog|gles the|
|00003d50| 20 69 6e 64 65 78 20 77 | 69 6e 64 6f 77 0d 0d 69 | index w|indow..i|
|00003d60| 66 20 69 6e 64 65 78 56 | 69 73 69 62 6c 65 20 69 |f indexV|isible i|
|00003d70| 73 20 66 61 6c 73 65 20 | 74 68 65 6e 0d 75 70 64 |s false |then.upd|
|00003d80| 61 74 65 69 6e 64 65 78 | 0d 70 75 74 20 74 72 75 |ateindex|.put tru|
|00003d90| 65 20 69 6e 74 6f 20 69 | 6e 64 65 78 56 69 73 69 |e into i|ndexVisi|
|00003da0| 62 6c 65 20 65 6c 73 65 | 0d 63 6c 6f 73 65 20 77 |ble else|.close w|
|00003db0| 69 6e 64 6f 77 20 22 49 | 6e 64 65 78 22 0d 65 6e |indow "I|ndex".en|
|00003dc0| 64 20 69 66 0d 65 6e 64 | 20 73 68 6f 77 49 6e 64 |d if.end| showInd|
|00003dd0| 65 78 0d 0d 6f 6e 20 63 | 6c 6f 73 65 50 61 6c 65 |ex..on c|losePale|
|00003de0| 74 74 65 20 57 68 61 74 | 0d 67 6c 6f 62 61 6c 20 |tte What|.global |
|00003df0| 6e 61 76 69 67 61 74 6f | 72 56 69 73 69 62 6c 65 |navigato|rVisible|
|00003e00| 0d 69 66 20 57 68 61 74 | 20 69 73 20 22 6e 61 76 |.if What| is "nav|
|00003e10| 69 67 61 74 6f 72 22 20 | 74 68 65 6e 0d 70 75 74 |igator" |then.put|
|00003e20| 20 66 61 6c 73 65 20 69 | 6e 74 6f 20 6e 61 76 69 | false i|nto navi|
|00003e30| 67 61 74 6f 72 56 69 73 | 69 62 6c 65 0d 65 6e 64 |gatorVis|ible.end|
|00003e40| 20 69 66 0d 65 6e 64 20 | 63 6c 6f 73 65 70 61 6c | if.end |closepal|
|00003e50| 65 74 74 65 0d 0d 6f 6e | 20 63 6c 6f 73 65 4c 69 |ette..on| closeLi|
|00003e60| 73 74 6f 69 64 20 57 68 | 61 74 0d 67 6c 6f 62 61 |stoid Wh|at.globa|
|00003e70| 6c 20 69 6e 64 65 78 56 | 69 73 69 62 6c 65 0d 0d |l indexV|isible..|
|00003e80| 2d 2d 20 64 65 74 65 63 | 74 73 20 77 68 65 74 68 |-- detec|ts wheth|
|00003e90| 65 72 20 74 68 65 20 6e | 61 76 69 67 61 74 6f 72 |er the n|avigator|
|00003ea0| 20 70 61 6c 65 74 74 65 | 20 68 61 73 20 62 65 65 | palette| has bee|
|00003eb0| 6e 20 63 6c 6f 73 65 64 | 0d 0d 69 66 20 57 68 61 |n closed|..if Wha|
|00003ec0| 74 20 69 73 20 22 49 6e | 64 65 78 22 20 74 68 65 |t is "In|dex" the|
|00003ed0| 6e 0d 70 75 74 20 66 61 | 6c 73 65 20 69 6e 74 6f |n.put fa|lse into|
|00003ee0| 20 69 6e 64 65 78 56 69 | 73 69 62 6c 65 0d 65 6e | indexVi|sible.en|
|00003ef0| 64 20 69 66 0d 65 6e 64 | 20 63 6c 6f 73 65 4c 69 |d if.end| closeLi|
|00003f00| 73 74 6f 69 64 0d 0d 6f | 6e 20 63 6c 6f 73 65 54 |stoid..o|n closeT|
|00003f10| 65 78 74 6f 69 64 20 57 | 68 61 74 0d 67 6c 6f 62 |extoid W|hat.glob|
|00003f20| 61 6c 20 6e 6f 74 65 56 | 69 73 69 62 6c 65 2c 74 |al noteV|isible,t|
|00003f30| 68 65 6e 6f 74 65 73 2c | 6e 65 77 6e 6f 74 65 76 |henotes,|newnotev|
|00003f40| 69 73 69 62 6c 65 0d 0d | 2d 2d 20 64 65 74 65 63 |isible..|-- detec|
|00003f50| 74 73 20 77 68 65 74 68 | 65 72 20 74 68 65 20 6e |ts wheth|er the n|
|00003f60| 6f 74 65 73 20 77 69 6e | 64 6f 69 64 20 68 61 73 |otes win|doid has|
|00003f70| 20 62 65 65 6e 20 63 6c | 6f 73 65 64 0d 2d 2d 20 | been cl|osed.-- |
|00003f80| 49 66 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |If the n|ame of t|
|00003f90| 68 65 20 77 69 6e 64 6f | 69 64 20 69 73 20 22 4e |he windo|id is "N|
|00003fa0| 6f 74 65 73 20 66 6f 72 | 20 74 68 69 73 20 72 65 |otes for| this re|
|00003fb0| 66 65 72 65 6e 63 65 22 | 0d 2d 2d 20 74 68 65 6e |ference"|.-- then|
|00003fc0| 20 74 68 69 73 20 69 73 | 20 74 68 65 20 6e 6f 74 | this is| the not|
|00003fd0| 65 73 20 66 6f 72 20 61 | 20 6e 65 77 6c 79 20 63 |es for a| newly c|
|00003fe0| 72 65 61 74 65 64 20 72 | 65 66 65 72 65 6e 63 65 |reated r|eference|
|00003ff0| 2c 20 61 6e 64 0d 2d 2d | 20 74 68 65 20 74 65 78 |, and.--| the tex|
|00004000| 74 20 6d 75 73 74 20 62 | 65 20 63 6f 70 69 65 64 |t must b|e copied|
|00004010| 20 6f 75 74 20 66 69 72 | 73 74 0d 0d 69 66 20 57 | out fir|st..if W|
|00004020| 68 61 74 20 69 73 20 22 | 4e 6f 74 65 73 22 20 74 |hat is "|Notes" t|
|00004030| 68 65 6e 0d 70 75 74 20 | 66 61 6c 73 65 20 69 6e |hen.put |false in|
|00004040| 74 6f 20 6e 6f 74 65 56 | 69 73 69 62 6c 65 20 65 |to noteV|isible e|
|00004050| 6c 73 65 0d 0d 0d 69 66 | 20 57 68 61 74 20 69 73 |lse...if| What is|
|00004060| 20 22 4e 6f 74 65 73 20 | 66 6f 72 20 74 68 69 73 | "Notes |for this|
|00004070| 20 72 65 66 65 72 65 6e | 63 65 22 20 74 68 65 6e | referen|ce" then|
|00004080| 0d 70 75 74 20 74 68 65 | 20 74 65 78 74 20 6f 66 |.put the| text of|
|00004090| 20 77 69 6e 64 6f 77 20 | 57 68 61 74 20 69 6e 74 | window |What int|
|000040a0| 6f 20 74 68 65 6e 6f 74 | 65 73 0d 70 75 74 20 74 |o thenot|es.put t|
|000040b0| 68 65 6e 6f 74 65 73 20 | 69 6e 74 6f 20 62 67 20 |henotes |into bg |
|000040c0| 66 69 65 6c 64 20 22 43 | 6f 6d 6d 65 6e 74 73 22 |field "C|omments"|
|000040d0| 0d 70 75 74 20 66 61 6c | 73 65 20 69 6e 74 6f 20 |.put fal|se into |
|000040e0| 6e 65 77 6e 6f 74 65 76 | 69 73 69 62 6c 65 0d 65 |newnotev|isible.e|
|000040f0| 6e 64 20 69 66 0d 65 6e | 64 20 69 66 0d 65 6e 64 |nd if.en|d if.end|
|00004100| 20 63 6c 6f 73 65 54 65 | 78 74 6f 69 64 0d 0d 0d | closeTe|xtoid...|
|00004110| 0d 6f 6e 20 63 6f 6d 6d | 61 6e 64 6b 65 79 64 6f |.on comm|andkeydo|
|00004120| 77 6e 20 74 68 65 63 68 | 61 72 0d 0d 2d 2d 20 61 |wn thech|ar..-- a|
|00004130| 6c 6c 6f 77 73 20 63 6f | 6d 6d 61 6e 64 20 6b 65 |llows co|mmand ke|
|00004140| 79 73 20 74 6f 20 62 65 | 20 75 73 65 64 0d 0d 69 |ys to be| used..i|
|00004150| 66 20 74 68 65 63 68 61 | 72 20 69 73 20 22 4b 22 |f thecha|r is "K"|
|00004160| 20 74 68 65 6e 0d 73 68 | 6f 77 47 6c 6f 62 61 6c | then.sh|owGlobal|
|00004170| 20 65 6c 73 65 0d 69 66 | 20 74 68 65 63 68 61 72 | else.if| thechar|
|00004180| 20 69 73 20 22 4c 22 20 | 74 68 65 6e 0d 73 68 6f | is "L" |then.sho|
|00004190| 77 4c 6f 63 61 6c 20 65 | 6c 73 65 0d 69 66 20 74 |wLocal e|lse.if t|
|000041a0| 68 65 63 68 61 72 20 69 | 73 20 22 49 22 20 74 68 |hechar i|s "I" th|
|000041b0| 65 6e 0d 73 68 6f 77 49 | 6e 64 65 78 20 65 6c 73 |en.showI|ndex els|
|000041c0| 65 0d 69 66 20 74 68 65 | 63 68 61 72 20 69 73 20 |e.if the|char is |
|000041d0| 22 4e 22 20 74 68 65 6e | 0d 6e 65 77 52 65 63 6f |"N" then|.newReco|
|000041e0| 72 64 20 65 6c 73 65 0d | 70 61 73 73 20 63 6f 6d |rd else.|pass com|
|000041f0| 6d 61 6e 64 6b 65 79 64 | 6f 77 6e 0d 65 6e 64 20 |mandkeyd|own.end |
|00004200| 69 66 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 69 66 |if.end i|f.end if|
|00004210| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 63 6f 6d 6d |.end if.|end comm|
|00004220| 61 6e 64 6b 65 79 64 6f | 77 6e 0d 0d 0d 6f 6e 20 |andkeydo|wn...on |
|00004230| 73 68 6f 77 4c 6f 63 61 | 6c 0d 69 66 20 74 68 65 |showLoca|l.if the|
|00004240| 72 65 20 69 73 20 61 20 | 77 69 6e 64 6f 77 20 22 |re is a |window "|
|00004250| 4c 6f 63 61 6c 20 6b 2f | 77 64 73 22 20 74 68 65 |Local k/|wds" the|
|00004260| 6e 0d 63 6c 6f 73 65 20 | 77 69 6e 64 6f 77 20 22 |n.close |window "|
|00004270| 4c 6f 63 61 6c 20 6b 2f | 77 64 73 22 0d 65 6e 64 |Local k/|wds".end|
|00004280| 20 69 66 0d 4c 69 73 74 | 6f 69 64 20 22 4c 6f 63 | if.List|oid "Loc|
|00004290| 61 6c 20 6b 2f 77 64 73 | 22 2c 62 67 20 66 69 65 |al k/wds|",bg fie|
|000042a0| 6c 64 20 22 70 65 72 73 | 6f 6e 61 6c 20 6b 65 79 |ld "pers|onal key|
|000042b0| 77 6f 72 64 73 22 2c c2 | 0d 22 31 30 30 2c 31 30 |words",.|."100,10|
|000042c0| 30 22 2c 22 30 20 30 22 | 2c 4e 4f 0d 65 6e 64 20 |0","0 0"|,NO.end |
|000042d0| 73 68 6f 77 4c 6f 63 61 | 6c 0d 0d 6f 6e 20 73 68 |showLoca|l..on sh|
|000042e0| 6f 77 47 6c 6f 62 61 6c | 0d 69 66 20 74 68 65 72 |owGlobal|.if ther|
|000042f0| 65 20 69 73 20 61 20 77 | 69 6e 64 6f 77 20 22 4b |e is a w|indow "K|
|00004300| 65 79 77 6f 72 64 73 22 | 20 74 68 65 6e 0d 63 6c |eywords"| then.cl|
|00004310| 6f 73 65 20 77 69 6e 64 | 6f 77 20 22 4b 65 79 77 |ose wind|ow "Keyw|
|00004320| 6f 72 64 73 22 0d 65 6e | 64 20 69 66 0d 75 6e 6d |ords".en|d if.unm|
|00004330| 61 72 6b 20 61 6c 6c 20 | 63 61 72 64 73 0d 6d 61 |ark all |cards.ma|
|00004340| 72 6b 20 74 68 69 73 20 | 63 61 72 64 0d 73 65 74 |rk this |card.set|
|00004350| 20 74 68 65 20 64 6f 6e | 74 53 65 61 72 63 68 20 | the don|tSearch |
|00004360| 6f 66 20 62 67 20 66 69 | 65 6c 64 20 22 67 6c 6f |of bg fi|eld "glo|
|00004370| 62 61 6c 20 6b 65 79 77 | 6f 72 64 73 20 74 65 6d |bal keyw|ords tem|
|00004380| 70 22 20 74 6f 20 66 61 | 6c 73 65 0d 70 75 74 20 |p" to fa|lse.put |
|00004390| 22 4b 65 79 77 6f 72 64 | 2c 4f 6e 20 74 68 69 73 |"Keyword|,On this|
|000043a0| 20 63 61 72 64 3f 22 26 | 20 72 65 74 75 72 6e 20 | card?"&| return |
|000043b0| 26 20 72 65 74 75 72 6e | 20 69 6e 74 6f 20 62 67 |& return| into bg|
|000043c0| 20 66 69 65 6c 64 20 22 | 67 6c 6f 62 61 6c 20 6b | field "|global k|
|000043d0| 65 79 77 6f 72 64 73 20 | 74 65 6d 70 22 0d 70 75 |eywords |temp".pu|
|000043e0| 74 20 62 67 20 66 69 65 | 6c 64 20 22 67 6c 6f 62 |t bg fie|ld "glob|
|000043f0| 61 6c 20 6b 65 79 77 6f | 72 64 73 22 20 61 66 74 |al keywo|rds" aft|
|00004400| 65 72 20 62 67 20 66 69 | 65 6c 64 20 22 67 6c 6f |er bg fi|eld "glo|
|00004410| 62 61 6c 20 6b 65 79 77 | 6f 72 64 73 20 74 65 6d |bal keyw|ords tem|
|00004420| 70 22 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 61 |p".repea|t with a|
|00004430| 3d 31 20 74 6f 20 6e 75 | 6d 62 65 72 20 6f 66 20 |=1 to nu|mber of |
|00004440| 6c 69 6e 65 73 20 6f 66 | 20 62 67 20 66 69 65 6c |lines of| bg fiel|
|00004450| 64 20 22 70 65 72 73 6f | 6e 61 6c 20 6b 65 79 77 |d "perso|nal keyw|
|00004460| 6f 72 64 73 22 0d 70 75 | 74 20 6c 69 6e 65 20 61 |ords".pu|t line a|
|00004470| 20 6f 66 20 62 67 20 66 | 69 65 6c 64 20 22 70 65 | of bg f|ield "pe|
|00004480| 72 73 6f 6e 61 6c 20 6b | 65 79 77 6f 72 64 73 22 |rsonal k|eywords"|
|00004490| 20 69 6e 74 6f 20 73 65 | 61 72 63 68 73 74 72 0d | into se|archstr.|
|000044a0| 69 66 20 73 65 61 72 63 | 68 73 74 72 20 69 73 20 |if searc|hstr is |
|000044b0| 6e 6f 74 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 66 |not empt|y then.f|
|000044c0| 69 6e 64 20 77 68 6f 6c | 65 20 22 c7 22 20 26 20 |ind whol|e "." & |
|000044d0| 73 65 61 72 63 68 73 74 | 72 20 26 20 22 c8 22 20 |searchst|r & "." |
|000044e0| 69 6e 20 62 67 c2 0d 66 | 69 65 6c 64 20 22 67 6c |in bg..f|ield "gl|
|000044f0| 6f 62 61 6c 20 6b 65 79 | 77 6f 72 64 73 20 74 65 |obal key|words te|
|00004500| 6d 70 22 20 6f 66 20 6d | 61 72 6b 65 64 20 63 61 |mp" of m|arked ca|
|00004510| 72 64 73 0d 69 66 20 74 | 68 65 20 72 65 73 75 6c |rds.if t|he resul|
|00004520| 74 20 69 73 20 20 6e 6f | 74 20 22 4e 6f 74 20 66 |t is no|t "Not f|
|00004530| 6f 75 6e 64 22 20 74 68 | 65 6e 0d 70 75 74 20 22 |ound" th|en.put "|
|00004540| 2c 59 65 73 22 20 61 66 | 74 65 72 20 74 68 65 20 |,Yes" af|ter the |
|00004550| 66 6f 75 6e 64 6c 69 6e | 65 0d 65 6e 64 20 69 66 |foundlin|e.end if|
|00004560| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 72 65 70 65 |.end if.|end repe|
|00004570| 61 74 0d 54 61 62 6c 6f | 69 64 20 22 4b 65 79 77 |at.Tablo|id "Keyw|
|00004580| 6f 72 64 73 22 2c 62 67 | 20 66 69 65 6c 64 20 22 |ords",bg| field "|
|00004590| 67 6c 6f 62 61 6c 20 6b | 65 79 77 6f 72 64 73 20 |global k|eywords |
|000045a0| 74 65 6d 70 22 2c c2 0d | 22 31 30 30 2c 31 30 30 |temp",..|"100,100|
|000045b0| 22 2c 22 30 20 30 22 0d | 65 6e 64 20 73 68 6f 77 |","0 0".|end show|
|000045c0| 47 6c 6f 62 61 6c 0d 0d | 0d 0d 6f 6e 20 6d 79 71 |Global..|..on myq|
|000045d0| 75 69 74 0d 61 6e 73 77 | 65 72 20 22 52 45 41 4c |uit.answ|er "REAL|
|000045e0| 4c 59 20 71 75 69 74 20 | 48 79 70 65 72 43 61 72 |LY quit |HyperCar|
|000045f0| 64 3f 22 20 77 69 74 68 | 20 22 59 65 73 22 2c 20 |d?" with| "Yes", |
|00004600| 22 4e 6f 22 2c 20 22 44 | 6f 6e d5 74 20 6b 6e 6f |"No", "D|on.t kno|
|00004610| 77 22 0d 69 66 20 69 74 | 20 69 73 20 22 44 6f 6e |w".if it| is "Don|
|00004620| d5 74 20 6b 6e 6f 77 22 | 20 74 68 65 6e 0d 61 6e |.t know"| then.an|
|00004630| 73 77 65 72 20 22 49 20 | 74 68 6f 75 67 68 20 73 |swer "I |though s|
|00004640| 6f c9 22 20 77 69 74 68 | 20 22 49 d5 6d 20 73 6f |o." with| "I.m so|
|00004650| 72 72 79 c9 22 20 65 6c | 73 65 0d 69 66 20 69 74 |rry." el|se.if it|
|00004660| 20 69 73 20 22 59 65 73 | 22 20 74 68 65 6e 20 64 | is "Yes|" then d|
|00004670| 6f 4d 65 6e 75 20 22 51 | 75 69 74 20 48 79 70 65 |oMenu "Q|uit Hype|
|00004680| 72 43 61 72 64 22 0d 65 | 6e 64 20 69 66 0d 65 6e |rCard".e|nd if.en|
|00004690| 64 20 6d 79 71 75 69 74 | 0d 0d 0d 0d 6f 6e 20 54 |d myquit|....on T|
|000046a0| 61 62 6c 6f 69 64 53 65 | 6c 65 63 74 20 57 68 61 |abloidSe|lect Wha|
|000046b0| 74 2c 57 68 65 72 65 0d | 67 6c 6f 62 61 6c 20 61 |t,Where.|global a|
|000046c0| 6c 6c 72 65 63 6f 72 64 | 73 2c 74 68 69 73 72 65 |llrecord|s,thisre|
|000046d0| 66 6e 6f 0d 2d 2d 70 75 | 74 20 57 68 65 72 65 20 |fno.--pu|t Where |
|000046e0| 26 20 22 20 3a 20 22 20 | 26 20 57 68 61 74 0d 0d |& " : " |& What..|
|000046f0| 69 66 20 57 68 65 72 65 | 20 69 73 20 22 4b 65 79 |if Where| is "Key|
|00004700| 77 6f 72 64 73 22 c2 0d | 61 6e 64 20 57 68 61 74 |words"..|and What|
|00004710| 20 69 73 20 6e 6f 74 20 | 65 6d 70 74 79 c2 0d 61 | is not |empty..a|
|00004720| 6e 64 20 57 68 61 74 20 | 69 73 20 6e 6f 74 20 22 |nd What |is not "|
|00004730| 59 65 73 22 c2 0d 61 6e | 64 20 57 68 61 74 20 69 |Yes"..an|d What i|
|00004740| 73 20 6e 6f 74 20 22 4b | 65 79 77 6f 72 64 22 c2 |s not "K|eyword".|
|00004750| 0d 61 6e 64 20 57 68 61 | 74 20 69 73 20 6e 6f 74 |.and Wha|t is not|
|00004760| 20 22 4f 6e 20 74 68 69 | 73 20 63 61 72 64 3f 22 | "On thi|s card?"|
|00004770| c2 0d 61 6e 64 20 66 6f | 72 6d 61 74 6b 65 79 77 |..and fo|rmatkeyw|
|00004780| 6f 72 64 73 28 57 68 61 | 74 29 20 69 73 20 6e 6f |ords(Wha|t) is no|
|00004790| 74 20 69 6e 20 62 67 20 | 66 69 65 6c 64 20 22 70 |t in bg |field "p|
|000047a0| 65 72 73 6f 6e 61 6c 20 | 6b 65 79 77 6f 72 64 73 |ersonal |keywords|
|000047b0| 22 20 74 68 65 6e 0d 61 | 6e 73 77 65 72 20 22 4d |" then.a|nswer "M|
|000047c0| 61 6b 65 22 20 26 26 20 | 57 68 61 74 20 26 26 20 |ake" && |What && |
|000047d0| 22 61 20 6b 65 79 77 6f | 72 64 20 6f 66 20 74 68 |"a keywo|rd of th|
|000047e0| 69 73 20 63 61 72 64 3f | 22 20 77 69 74 68 20 22 |is card?|" with "|
|000047f0| 59 65 73 22 20 6f 72 20 | 22 4e 6f 22 0d 69 66 20 |Yes" or |"No".if |
|00004800| 69 74 20 69 73 20 22 59 | 65 73 22 20 74 68 65 6e |it is "Y|es" then|
|00004810| 0d 70 75 74 20 66 6f 72 | 6d 61 74 6b 65 79 77 6f |.put for|matkeywo|
|00004820| 72 64 73 28 57 68 61 74 | 29 20 61 66 74 65 72 20 |rds(What|) after |
|00004830| 62 67 20 66 69 65 6c 64 | 20 22 50 65 72 73 6f 6e |bg field| "Person|
|00004840| 61 6c 20 6b 65 79 77 6f | 72 64 73 22 0d 70 75 74 |al keywo|rds".put|
|00004850| 20 57 68 61 74 20 26 20 | 69 74 65 6d 20 38 20 6f | What & |item 8 o|
|00004860| 66 20 6c 69 6e 65 20 74 | 68 69 73 72 65 66 6e 6f |f line t|hisrefno|
|00004870| 20 6f 66 20 61 6c 6c 72 | 65 63 6f 72 64 73 20 69 | of allr|ecords i|
|00004880| 6e 74 6f c2 0d 69 74 65 | 6d 20 38 20 6f 66 20 6c |nto..ite|m 8 of l|
|00004890| 69 6e 65 20 74 68 69 73 | 72 65 66 6e 6f 20 6f 66 |ine this|refno of|
|000048a0| 20 61 6c 6c 72 65 63 6f | 72 64 73 0d 65 6e 64 20 | allreco|rds.end |
|000048b0| 69 66 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 54 61 |if.end i|f.end Ta|
|000048c0| 62 6c 6f 69 64 73 65 6c | 65 63 74 0d 0d 6f 6e 20 |bloidsel|ect..on |
|000048d0| 4c 69 73 74 6f 69 64 53 | 65 6c 65 63 74 20 57 68 |ListoidS|elect Wh|
|000048e0| 61 74 2c 57 68 65 72 65 | 0d 67 6c 6f 62 61 6c 20 |at,Where|.global |
|000048f0| 61 6c 6c 72 65 63 6f 72 | 64 73 2c 74 68 69 73 72 |allrecor|ds,thisr|
|00004900| 65 66 6e 6f 2c 77 6e 61 | 6d 65 0d 70 75 74 20 63 |efno,wna|me.put c|
|00004910| 68 61 72 20 32 32 20 74 | 6f 20 6c 65 6e 67 74 68 |har 22 t|o length|
|00004920| 28 57 68 61 74 29 20 6f | 66 20 57 68 61 74 20 69 |(What) o|f What i|
|00004930| 6e 74 6f 20 73 65 61 72 | 63 68 74 65 78 74 0d 67 |nto sear|chtext.g|
|00004940| 65 74 20 66 75 6c 6c 66 | 69 6e 64 28 61 6c 6c 72 |et fullf|ind(allr|
|00004950| 65 63 6f 72 64 73 2c 73 | 65 61 72 63 68 74 65 78 |ecords,s|earchtex|
|00004960| 74 2c 66 61 6c 73 65 2c | 66 61 6c 73 65 2c 74 72 |t,false,|false,tr|
|00004970| 75 65 2c 30 2c 35 29 0d | 70 75 74 20 69 74 65 6d |ue,0,5).|put item|
|00004980| 20 32 20 6f 66 20 69 74 | 20 69 6e 74 6f 20 74 68 | 2 of it| into th|
|00004990| 69 73 72 65 66 6e 6f 0d | 2d 2d 70 75 74 20 74 68 |isrefno.|--put th|
|000049a0| 69 73 72 65 66 6e 6f 0d | 64 69 73 70 6c 61 79 72 |isrefno.|displayr|
|000049b0| 65 63 6f 72 64 0d 65 6e | 64 20 4c 69 73 74 6f 69 |ecord.en|d Listoi|
|000049c0| 64 73 65 6c 65 63 74 0d | 0d 0d 66 75 6e 63 74 69 |dselect.|..functi|
|000049d0| 6f 6e 20 70 61 64 6f 75 | 74 20 74 68 65 73 74 72 |on padou|t thestr|
|000049e0| 69 6e 67 2c 68 6f 77 6c | 6f 6e 67 0d 70 75 74 20 |ing,howl|ong.put |
|000049f0| 65 6d 70 74 79 20 69 6e | 74 6f 20 74 68 65 6e 65 |empty in|to thene|
|00004a00| 77 73 74 72 69 6e 67 0d | 69 66 20 74 68 65 73 74 |wstring.|if thest|
|00004a10| 72 69 6e 67 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |ring is |not empt|
|00004a20| 79 20 74 68 65 6e 0d 70 | 75 74 20 74 68 65 20 6e |y then.p|ut the n|
|00004a30| 75 6d 62 65 72 20 6f 66 | 20 63 68 61 72 73 20 69 |umber of| chars i|
|00004a40| 6e 20 74 68 65 53 74 72 | 69 6e 67 20 69 6e 74 6f |n theStr|ing into|
|00004a50| 20 6e 75 6d 62 0d 69 66 | 20 6e 75 6d 62 3c 68 6f | numb.if| numb<ho|
|00004a60| 77 6c 6f 6e 67 20 74 68 | 65 6e 0d 70 75 74 20 74 |wlong th|en.put t|
|00004a70| 68 65 53 74 72 69 6e 67 | 20 69 6e 74 6f 20 74 68 |heString| into th|
|00004a80| 65 6e 65 77 73 74 72 69 | 6e 67 0d 72 65 70 65 61 |enewstri|ng.repea|
|00004a90| 74 20 77 69 74 68 20 6d | 3d 31 20 74 6f 20 28 68 |t with m|=1 to (h|
|00004aa0| 6f 77 6c 6f 6e 67 2d 6e | 75 6d 62 29 0d 70 75 74 |owlong-n|umb).put|
|00004ab0| 20 22 20 22 20 61 66 74 | 65 72 20 74 68 65 6e 65 | " " aft|er thene|
|00004ac0| 77 73 74 72 69 6e 67 0d | 65 6e 64 20 72 65 70 65 |wstring.|end repe|
|00004ad0| 61 74 20 65 6c 73 65 0d | 70 75 74 20 63 68 61 72 |at else.|put char|
|00004ae0| 20 31 20 74 6f 20 68 6f | 77 6c 6f 6e 67 20 6f 66 | 1 to ho|wlong of|
|00004af0| 20 74 68 65 73 74 72 69 | 6e 67 20 69 6e 74 6f 20 | thestri|ng into |
|00004b00| 74 68 65 6e 65 77 73 74 | 72 69 6e 67 0d 0d 65 6e |thenewst|ring..en|
|00004b10| 64 20 69 66 0d 65 6e 64 | 20 69 66 0d 0d 72 65 74 |d if.end| if..ret|
|00004b20| 75 72 6e 20 74 68 65 6e | 65 77 53 74 72 69 6e 67 |urn then|ewString|
|00004b30| 0d 65 6e 64 20 70 61 64 | 6f 75 74 0d 0d 6f 6e 20 |.end pad|out..on |
|00004b40| 53 74 6f 72 65 43 61 72 | 64 0d 67 6c 6f 62 61 6c |StoreCar|d.global|
|00004b50| 20 6f 6c 64 75 73 65 72 | 6c 65 76 65 6c 2c 61 6c | olduser|level,al|
|00004b60| 6c 72 65 63 6f 72 64 73 | 2c 74 68 69 73 72 65 66 |lrecords|,thisref|
|00004b70| 6e 6f 2c 74 68 65 6e 6f | 74 65 73 2c 6e 65 77 6e |no,theno|tes,newn|
|00004b80| 6f 74 65 76 69 73 69 62 | 6c 65 2c c2 0d 6b 65 79 |otevisib|le,..key|
|00004b90| 77 6f 72 64 73 45 6e 74 | 65 72 65 64 0d 69 66 20 |wordsEnt|ered.if |
|00004ba0| 62 67 20 66 69 65 6c 64 | 20 22 61 75 74 68 6f 72 |bg field| "author|
|00004bb0| 31 22 20 69 73 20 65 6d | 70 74 79 20 6f 72 20 62 |1" is em|pty or b|
|00004bc0| 67 20 66 69 65 6c 64 20 | 22 74 69 74 6c 65 22 20 |g field |"title" |
|00004bd0| 69 73 20 65 6d 70 74 79 | 20 74 68 65 6e 0d 61 6e |is empty| then.an|
|00004be0| 73 77 65 72 20 22 59 6f | 75 d5 76 65 20 6e 6f 74 |swer "Yo|u.ve not|
|00004bf0| 20 66 69 6c 6c 65 64 20 | 69 6e 20 65 6e 6f 75 67 | filled |in enoug|
|00004c00| 68 20 66 69 65 6c 64 73 | 22 0d 65 78 69 74 20 73 |h fields|".exit s|
|00004c10| 74 6f 72 65 43 61 72 64 | 0d 65 6e 64 20 69 66 0d |toreCard|.end if.|
|00004c20| 70 75 74 20 72 65 6d 6f | 76 65 72 65 74 75 72 6e |put remo|vereturn|
|00004c30| 28 72 65 70 6c 61 63 65 | 63 6f 6d 6d 61 28 62 67 |(replace|comma(bg|
|00004c40| 20 66 69 65 6c 64 20 22 | 64 61 74 65 22 29 29 20 | field "|date")) |
|00004c50| 69 6e 74 6f 20 64 61 74 | 65 73 74 6f 72 65 0d 0d |into dat|estore..|
|00004c60| 69 66 20 28 64 61 74 65 | 73 74 6f 72 65 20 69 73 |if (date|store is|
|00004c70| 20 6e 6f 74 20 65 6d 70 | 74 79 20 61 6e 64 20 28 | not emp|ty and (|
|00004c80| 28 64 61 74 65 73 74 6f | 72 65 3e 20 69 74 65 6d |(datesto|re> item|
|00004c90| 20 33 20 6f 66 20 74 68 | 65 20 6c 6f 6e 67 20 64 | 3 of th|e long d|
|00004ca0| 61 74 65 29 20 6f 72 20 | 28 64 61 74 65 73 74 6f |ate) or |(datesto|
|00004cb0| 72 65 3c 30 29 29 29 20 | 74 68 65 6e 0d 61 6e 73 |re<0))) |then.ans|
|00004cc0| 77 65 72 20 22 49 20 64 | 6f 6e 27 74 20 74 68 69 |wer "I d|on't thi|
|00004cd0| 6e 6b 20 74 68 61 74 27 | 73 20 61 20 76 61 6c 69 |nk that'|s a vali|
|00004ce0| 64 20 64 61 74 65 22 0d | 65 78 69 74 20 73 74 6f |d date".|exit sto|
|00004cf0| 72 65 43 61 72 64 0d 65 | 6e 64 20 69 66 0d 0d 73 |reCard.e|nd if..s|
|00004d00| 65 74 20 74 68 65 20 75 | 73 65 72 6c 65 76 65 6c |et the u|serlevel|
|00004d10| 20 74 6f 20 35 0d 0d 69 | 66 20 6e 65 77 6e 6f 74 | to 5..i|f newnot|
|00004d20| 65 76 69 73 69 62 6c 65 | 20 74 68 65 6e 0d 63 6c |evisible| then.cl|
|00004d30| 6f 73 65 20 77 69 6e 64 | 6f 77 20 22 4e 6f 74 65 |ose wind|ow "Note|
|00004d40| 73 20 66 6f 72 20 74 68 | 69 73 20 72 65 66 65 72 |s for th|is refer|
|00004d50| 65 6e 63 65 22 0d 65 6e | 64 20 69 66 0d 0d 70 75 |ence".en|d if..pu|
|00004d60| 74 20 72 65 6d 6f 76 65 | 72 65 74 75 72 6e 28 72 |t remove|return(r|
|00004d70| 65 70 6c 61 63 65 63 6f | 6d 6d 61 28 62 67 20 66 |eplaceco|mma(bg f|
|00004d80| 69 65 6c 64 20 22 61 75 | 74 68 6f 72 31 22 29 29 |ield "au|thor1"))|
|00004d90| 20 69 6e 74 6f 20 68 69 | 74 6e 61 6d 65 0d 70 75 | into hi|tname.pu|
|00004da0| 74 20 72 65 6d 6f 76 65 | 72 65 74 75 72 6e 28 72 |t remove|return(r|
|00004db0| 65 70 6c 61 63 65 63 6f | 6d 6d 61 28 62 67 20 66 |eplaceco|mma(bg f|
|00004dc0| 69 65 6c 64 20 22 61 75 | 74 68 6f 72 32 22 29 29 |ield "au|thor2"))|
|00004dd0| 20 69 6e 74 6f 20 61 32 | 0d 70 75 74 20 72 65 6d | into a2|.put rem|
|00004de0| 6f 76 65 72 65 74 75 72 | 6e 28 72 65 70 6c 61 63 |overetur|n(replac|
|00004df0| 65 63 6f 6d 6d 61 28 62 | 67 20 66 69 65 6c 64 20 |ecomma(b|g field |
|00004e00| 22 61 75 74 68 6f 72 33 | 22 29 29 20 69 6e 74 6f |"author3|")) into|
|00004e10| 20 61 33 0d 70 75 74 20 | 72 65 6d 6f 76 65 72 65 | a3.put |removere|
|00004e20| 74 75 72 6e 28 72 65 70 | 6c 61 63 65 63 6f 6d 6d |turn(rep|lacecomm|
|00004e30| 61 28 62 67 20 66 69 65 | 6c 64 20 22 61 75 74 68 |a(bg fie|ld "auth|
|00004e40| 6f 72 34 22 29 29 20 69 | 6e 74 6f 20 61 34 0d 70 |or4")) i|nto a4.p|
|00004e50| 75 74 20 72 65 6d 6f 76 | 65 72 65 74 75 72 6e 28 |ut remov|ereturn(|
|00004e60| 72 65 70 6c 61 63 65 63 | 6f 6d 6d 61 28 62 67 20 |replacec|omma(bg |
|00004e70| 66 69 65 6c 64 20 22 74 | 69 74 6c 65 22 29 29 20 |field "t|itle")) |
|00004e80| 69 6e 74 6f 20 74 69 74 | 6c 65 0d 70 75 74 20 72 |into tit|le.put r|
|00004e90| 65 6d 6f 76 65 72 65 74 | 75 72 6e 28 72 65 70 6c |emoveret|urn(repl|
|00004ea0| 61 63 65 63 6f 6d 6d 61 | 28 74 68 65 6e 6f 74 65 |acecomma|(thenote|
|00004eb0| 73 29 29 20 69 6e 74 6f | 20 63 6f 6d 6d 0d 70 75 |s)) into| comm.pu|
|00004ec0| 74 20 72 65 6d 6f 76 65 | 72 65 74 75 72 6e 28 72 |t remove|return(r|
|00004ed0| 65 70 6c 61 63 65 63 6f | 6d 6d 61 28 62 67 20 66 |eplaceco|mma(bg f|
|00004ee0| 69 65 6c 64 20 22 77 68 | 65 72 65 69 74 69 73 22 |ield "wh|ereitis"|
|00004ef0| 29 29 20 69 6e 74 6f 20 | 77 68 69 74 69 73 0d 70 |)) into |whitis.p|
|00004f00| 75 74 20 72 65 6d 6f 76 | 65 72 65 74 75 72 6e 28 |ut remov|ereturn(|
|00004f10| 72 65 70 6c 61 63 65 63 | 6f 6d 6d 61 28 62 67 20 |replacec|omma(bg |
|00004f20| 66 69 65 6c 64 20 22 72 | 65 6c 65 76 61 6e 63 65 |field "r|elevance|
|00004f30| 22 29 29 20 69 6e 74 6f | 20 72 65 6c 65 76 61 6e |")) into| relevan|
|00004f40| 63 65 0d 70 75 74 20 72 | 65 6d 6f 76 65 72 65 74 |ce.put r|emoveret|
|00004f50| 75 72 6e 28 72 65 70 6c | 61 63 65 63 6f 6d 6d 61 |urn(repl|acecomma|
|00004f60| 28 62 67 20 66 69 65 6c | 64 20 22 64 61 74 65 22 |(bg fiel|d "date"|
|00004f70| 29 29 20 69 6e 74 6f 20 | 64 61 74 65 73 74 6f 72 |)) into |datestor|
|00004f80| 65 0d 70 75 74 20 74 68 | 65 20 6c 6f 63 20 6f 66 |e.put th|e loc of|
|00004f90| 20 62 67 20 62 75 74 74 | 6f 6e 20 22 73 6c 69 64 | bg butt|on "slid|
|00004fa0| 65 72 22 20 69 6e 74 6f | 20 73 6c 6f 63 0d 70 75 |er" into| sloc.pu|
|00004fb0| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 6b 65 79 |t empty |into key|
|00004fc0| 73 74 6f 72 65 0d 69 66 | 20 6b 65 79 77 6f 72 64 |store.if| keyword|
|00004fd0| 73 45 6e 74 65 72 65 64 | 20 74 68 65 6e 0d 70 75 |sEntered| then.pu|
|00004fe0| 74 20 62 67 20 66 69 65 | 6c 64 20 22 70 65 72 73 |t bg fie|ld "pers|
|00004ff0| 6f 6e 61 6c 20 6b 65 79 | 77 6f 72 64 73 22 20 69 |onal key|words" i|
|00005000| 6e 74 6f 20 6b 65 79 74 | 65 6d 70 0d 69 66 20 6b |nto keyt|emp.if k|
|00005010| 65 79 74 65 6d 70 20 69 | 73 20 6e 6f 74 20 65 6d |eytemp i|s not em|
|00005020| 70 74 79 20 74 68 65 6e | 0d 72 65 70 65 61 74 20 |pty then|.repeat |
|00005030| 77 69 74 68 20 78 3d 20 | 31 20 74 6f 20 74 68 65 |with x= |1 to the|
|00005040| 20 6e 75 6d 62 65 72 20 | 6f 66 20 69 74 65 6d 73 | number |of items|
|00005050| 20 69 6e 20 6b 65 79 74 | 65 6d 70 0d 70 75 74 20 | in keyt|emp.put |
|00005060| 69 74 65 6d 20 78 20 6f | 66 20 6b 65 79 74 65 6d |item x o|f keytem|
|00005070| 70 20 61 66 74 65 72 20 | 6b 65 79 73 74 6f 72 65 |p after |keystore|
|00005080| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |.end rep|eat.end |
|00005090| 69 66 0d 65 6e 64 20 69 | 66 0d 70 75 74 20 69 6e |if.end i|f.put in|
|000050a0| 73 65 72 74 72 65 63 6f | 72 64 28 68 69 74 6e 61 |sertreco|rd(hitna|
|000050b0| 6d 65 2c 61 32 2c 61 33 | 2c 61 34 2c 74 69 74 6c |me,a2,a3|,a4,titl|
|000050c0| 65 2c 77 68 69 74 69 73 | 2c 63 6f 6d 6d 2c 6b 65 |e,whitis|,comm,ke|
|000050d0| 79 73 74 6f 72 65 2c 72 | 65 6c 65 76 61 6e 63 65 |ystore,r|elevance|
|000050e0| 2c 64 61 74 65 73 74 6f | 72 65 29 c2 0d 69 6e 74 |,datesto|re)..int|
|000050f0| 6f 20 6e 65 77 72 65 63 | 6f 72 64 0d 77 72 69 74 |o newrec|ord.writ|
|00005100| 65 72 65 63 6f 72 64 69 | 6e 28 6e 65 77 72 65 63 |erecordi|n(newrec|
|00005110| 6f 72 64 29 0d 0d 73 65 | 74 20 74 68 65 20 6c 6f |ord)..se|t the lo|
|00005120| 63 20 6f 66 20 62 67 20 | 62 75 74 74 6f 6e 20 22 |c of bg |button "|
|00005130| 73 6c 69 64 65 72 22 20 | 74 6f 20 73 6c 6f 63 0d |slider" |to sloc.|
|00005140| 73 65 74 20 74 68 65 20 | 75 73 65 72 6c 65 76 65 |set the |userleve|
|00005150| 6c 20 74 6f 20 6f 6c 64 | 75 73 65 72 6c 65 76 65 |l to old|userleve|
|00005160| 6c 0d 75 6e 6c 6f 63 6b | 20 73 63 72 65 65 6e 20 |l.unlock| screen |
|00005170| 77 69 74 68 20 73 63 72 | 6f 6c 6c 20 75 70 20 66 |with scr|oll up f|
|00005180| 61 73 74 0d 65 6e 64 20 | 73 74 6f 72 65 43 61 72 |ast.end |storeCar|
|00005190| 64 0d 0d 6f 6e 20 6e 65 | 77 52 65 63 6f 72 64 0d |d..on ne|wRecord.|
|000051a0| 76 69 73 75 61 6c 20 65 | 66 66 65 63 74 20 73 63 |visual e|ffect sc|
|000051b0| 72 6f 6c 6c 20 64 6f 77 | 6e 20 66 61 73 74 0d 67 |roll dow|n fast.g|
|000051c0| 6f 20 74 6f 20 63 61 72 | 64 20 22 4e 65 77 20 72 |o to car|d "New r|
|000051d0| 65 66 22 0d 0d 65 6e 64 | 20 6e 65 77 52 65 63 6f |ef"..end| newReco|
|000051e0| 72 64 0d 0d 6f 6e 20 64 | 65 6c 65 74 65 72 65 63 |rd..on d|eleterec|
|000051f0| 6f 72 64 0d 67 6c 6f 62 | 61 6c 20 61 6c 6c 72 65 |ord.glob|al allre|
|00005200| 63 6f 72 64 73 2c 74 68 | 69 73 72 65 66 6e 6f 2c |cords,th|isrefno,|
|00005210| 72 65 63 66 69 6c 65 0d | 61 6e 73 77 65 72 20 22 |recfile.|answer "|
|00005220| 41 72 65 20 79 6f 75 20 | 73 75 72 65 20 79 6f 75 |Are you |sure you|
|00005230| 20 77 61 6e 74 20 74 6f | 20 44 45 4c 45 54 45 20 | want to| DELETE |
|00005240| 74 68 65 20 72 65 63 6f | 72 64 3a 22 20 26 20 72 |the reco|rd:" & r|
|00005250| 65 74 75 72 6e 20 26 c2 | 0d 72 65 74 75 72 6e 20 |eturn &.|.return |
|00005260| 26 20 72 65 70 6c 61 63 | 65 62 6c 6f 62 28 69 74 |& replac|eblob(it|
|00005270| 65 6d 20 31 20 6f 66 20 | 6c 69 6e 65 20 74 68 69 |em 1 of |line thi|
|00005280| 73 72 65 66 6e 6f 20 6f | 66 20 61 6c 6c 72 65 63 |srefno o|f allrec|
|00005290| 6f 72 64 73 29 c2 0d 26 | 20 22 3a 22 20 26 20 72 |ords)..&| ":" & r|
|000052a0| 65 74 75 72 6e 20 26 20 | 22 d2 22 20 26 c2 0d 72 |eturn & |"." &..r|
|000052b0| 65 70 6c 61 63 65 62 6c | 6f 62 28 69 74 65 6d 20 |eplacebl|ob(item |
|000052c0| 35 20 6f 66 20 6c 69 6e | 65 20 74 68 69 73 72 65 |5 of lin|e thisre|
|000052d0| 66 6e 6f 20 6f 66 20 61 | 6c 6c 72 65 63 6f 72 64 |fno of a|llrecord|
|000052e0| 73 29 c2 0d 26 20 22 d3 | 22 20 26 20 72 65 74 75 |s)..& ".|" & retu|
|000052f0| 72 6e 20 26 20 72 65 74 | 75 72 6e 20 26 20 22 c9 |rn & ret|urn & ".|
|00005300| 66 72 6f 6d 20 74 68 65 | 20 66 69 6c 65 3a 22 26 |from the| file:"&|
|00005310| 20 72 65 74 75 72 6e 20 | 26 20 72 65 74 75 72 6e | return |& return|
|00005320| c2 0d 26 20 22 d2 22 20 | 26 20 73 68 6f 72 74 66 |..& "." |& shortf|
|00005330| 69 6c 65 6e 61 6d 65 28 | 72 65 63 66 69 6c 65 29 |ilename(|recfile)|
|00005340| 20 26 20 22 d3 22 20 26 | 20 72 65 74 75 72 6e c2 | & "." &| return.|
|00005350| 0d 26 20 22 28 22 20 26 | 20 72 65 63 66 69 6c 65 |.& "(" &| recfile|
|00005360| 20 26 20 22 29 22 20 77 | 69 74 68 20 22 59 65 73 | & ")" w|ith "Yes|
|00005370| 22 20 6f 72 20 22 4e 6f | 22 0d 69 66 20 69 74 20 |" or "No|".if it |
|00005380| 69 73 20 22 59 65 73 22 | 20 74 68 65 6e 0d 64 65 |is "Yes"| then.de|
|00005390| 6c 65 74 65 72 65 63 6f | 72 64 6e 75 6d 62 65 72 |letereco|rdnumber|
|000053a0| 20 74 68 69 73 72 65 66 | 6e 6f 0d 64 69 73 70 6c | thisref|no.displ|
|000053b0| 61 79 72 65 63 6f 72 64 | 0d 65 6e 64 20 69 66 0d |ayrecord|.end if.|
|000053c0| 0d 65 6e 64 20 64 65 6c | 65 74 65 72 65 63 6f 72 |.end del|eterecor|
|000053d0| 64 0d 0d 6f 6e 20 6f 70 | 65 6e 6e 65 77 72 65 63 |d..on op|ennewrec|
|000053e0| 6f 72 64 66 69 6c 65 0d | 67 6c 6f 62 61 6c 20 72 |ordfile.|global r|
|000053f0| 65 63 66 69 6c 65 0d 70 | 75 74 20 53 74 61 6e 64 |ecfile.p|ut Stand|
|00005400| 61 72 64 46 69 6c 65 28 | 22 70 75 74 3a 4e 65 77 |ardFile(|"put:New|
|00005410| 2c 43 61 6e 63 65 6c 22 | 2c 22 22 2c 20 22 45 6e |,Cancel"|,"", "En|
|00005420| 74 65 72 20 6e 65 77 20 | 72 65 66 2e 20 66 69 6c |ter new |ref. fil|
|00005430| 65 20 6e 61 6d 65 3a 22 | 29 20 69 6e 74 6f 20 66 |e name:"|) into f|
|00005440| 69 6c 65 4e 61 6d 65 0d | 69 66 20 66 69 6c 65 4e |ileName.|if fileN|
|00005450| 61 6d 65 20 69 73 20 6e | 6f 74 20 65 6d 70 74 79 |ame is n|ot empty|
|00005460| 20 74 68 65 6e 0d 70 75 | 74 20 22 43 6c 6f 73 69 | then.pu|t "Closi|
|00005470| 6e 67 20 66 69 6c 65 3a | 22 20 26 26 20 73 68 6f |ng file:|" && sho|
|00005480| 72 74 66 69 6c 65 6e 61 | 6d 65 28 72 65 63 66 69 |rtfilena|me(recfi|
|00005490| 6c 65 29 0d 63 6c 6f 73 | 65 72 65 63 6f 72 64 66 |le).clos|erecordf|
|000054a0| 69 6c 65 0d 6f 70 65 6e | 20 66 69 6c 65 20 66 69 |ile.open| file fi|
|000054b0| 6c 65 6e 61 6d 65 0d 77 | 72 69 74 65 20 22 54 68 |lename.w|rite "Th|
|000054c0| 69 73 20 69 73 20 61 20 | 72 65 66 65 72 65 6e 63 |is is a |referenc|
|000054d0| 65 73 20 66 69 6c 65 22 | 20 26 20 72 65 74 75 72 |es file"| & retur|
|000054e0| 6e 20 26 c2 0d 22 30 22 | 20 26 20 72 65 74 75 72 |n &.."0"| & retur|
|000054f0| 6e 20 26 c2 0d 22 30 22 | 20 26 20 72 65 74 75 72 |n &.."0"| & retur|
|00005500| 6e 20 26 c2 0d 22 30 22 | 20 26 20 72 65 74 75 72 |n &.."0"| & retur|
|00005510| 6e 20 74 6f 20 66 69 6c | 65 20 66 69 6c 65 6e 61 |n to fil|e filena|
|00005520| 6d 65 0d 63 6c 6f 73 65 | 20 66 69 6c 65 20 66 69 |me.close| file fi|
|00005530| 6c 65 6e 61 6d 65 0d 6f | 70 65 6e 72 65 63 6f 72 |lename.o|penrecor|
|00005540| 64 66 69 6c 65 20 66 69 | 6c 65 6e 61 6d 65 0d 65 |dfile fi|lename.e|
|00005550| 6e 64 20 69 66 0d 68 69 | 64 65 20 6d 65 73 73 61 |nd if.hi|de messa|
|00005560| 67 65 0d 65 6e 64 20 6f | 70 65 6e 6e 65 77 72 65 |ge.end o|pennewre|
|00005570| 63 6f 72 64 66 69 6c 65 | 0d 0d 6f 6e 20 6f 70 65 |cordfile|..on ope|
|00005580| 6e 72 65 63 6f 72 64 66 | 69 6c 65 20 6f 70 74 69 |nrecordf|ile opti|
|00005590| 6f 6e 61 6c 66 69 6c 65 | 6e 61 6d 65 0d 67 6c 6f |onalfile|name.glo|
|000055a0| 62 61 6c 20 72 65 63 66 | 69 6c 65 2c 61 6c 6c 72 |bal recf|ile,allr|
|000055b0| 65 63 6f 72 64 73 2c 61 | 6c 6c 6b 65 79 73 2c 74 |ecords,a|llkeys,t|
|000055c0| 68 69 73 72 65 66 6e 6f | 2c 61 6c 6c 69 6e 64 65 |hisrefno|,allinde|
|000055d0| 78 65 6e 74 72 69 65 73 | 0d 0d 0d 70 75 74 20 2d |xentries|...put -|
|000055e0| 31 20 69 6e 74 6f 20 74 | 68 69 73 72 65 66 6e 6f |1 into t|hisrefno|
|000055f0| 0d 64 69 73 70 6c 61 79 | 72 65 63 6f 72 64 0d 0d |.display|record..|
|00005600| 69 66 20 74 68 65 20 70 | 61 72 61 6d 63 6f 75 6e |if the p|aramcoun|
|00005610| 74 20 69 73 20 30 20 74 | 68 65 6e 0d 70 75 74 20 |t is 0 t|hen.put |
|00005620| 66 61 6c 73 65 20 69 6e | 74 6f 20 6f 6b 66 69 6c |false in|to okfil|
|00005630| 65 0d 72 65 70 65 61 74 | 20 75 6e 74 69 6c 20 6f |e.repeat| until o|
|00005640| 6b 66 69 6c 65 0d 70 75 | 74 20 46 69 6c 65 50 61 |kfile.pu|t FilePa|
|00005650| 74 68 28 54 45 58 54 2c | 22 46 69 6e 64 20 61 6e |th(TEXT,|"Find an|
|00005660| 64 20 6f 70 65 6e 20 74 | 68 65 20 72 65 66 65 72 |d open t|he refer|
|00005670| 65 6e 63 65 73 20 64 61 | 74 61 22 29 20 69 6e 74 |ences da|ta") int|
|00005680| 6f 20 72 65 63 66 69 6c | 65 0d 0d 69 66 20 72 65 |o recfil|e..if re|
|00005690| 63 66 69 6c 65 20 69 73 | 20 65 6d 70 74 79 20 74 |cfile is| empty t|
|000056a0| 68 65 6e 0d 65 78 69 74 | 20 6f 70 65 6e 72 65 63 |hen.exit| openrec|
|000056b0| 6f 72 64 66 69 6c 65 20 | 65 6c 73 65 0d 6f 70 65 |ordfile |else.ope|
|000056c0| 6e 20 66 69 6c 65 20 72 | 65 63 66 69 6c 65 0d 72 |n file r|ecfile.r|
|000056d0| 65 61 64 20 66 72 6f 6d | 20 66 69 6c 65 20 72 65 |ead from| file re|
|000056e0| 63 66 69 6c 65 20 75 6e | 74 69 6c 20 72 65 74 75 |cfile un|til retu|
|000056f0| 72 6e 0d 69 66 20 22 54 | 68 69 73 20 69 73 20 61 |rn.if "T|his is a|
|00005700| 20 72 65 66 65 72 65 6e | 63 65 73 20 66 69 6c 65 | referen|ces file|
|00005710| 22 20 69 73 20 6e 6f 74 | 20 69 6e 20 69 74 20 74 |" is not| in it t|
|00005720| 68 65 6e 0d 61 6e 73 77 | 65 72 20 22 54 68 61 74 |hen.answ|er "That|
|00005730| 20 77 61 73 6e 27 74 20 | 74 68 65 20 72 69 67 68 | wasn't |the righ|
|00005740| 74 20 66 69 6c 65 2e 22 | 20 26 20 72 65 74 75 72 |t file."| & retur|
|00005750| 6e 20 26 c2 0d 22 46 69 | 6e 64 20 74 68 65 20 72 |n &.."Fi|nd the r|
|00005760| 65 66 65 72 65 6e 63 65 | 73 20 64 61 74 61 20 66 |eference|s data f|
|00005770| 69 6c 65 22 0d 63 6c 6f | 73 65 20 66 69 6c 65 20 |ile".clo|se file |
|00005780| 72 65 63 66 69 6c 65 20 | 65 6c 73 65 0d 70 75 74 |recfile |else.put|
|00005790| 20 74 72 75 65 20 69 6e | 74 6f 20 6f 6b 66 69 6c | true in|to okfil|
|000057a0| 65 0d 61 6e 73 77 65 72 | 20 22 42 61 63 6b 75 70 |e.answer| "Backup|
|000057b0| 20 72 65 66 65 72 65 6e | 63 65 73 20 66 69 6c 65 | referen|ces file|
|000057c0| 3a 22 20 26 26 20 73 68 | 6f 72 74 66 69 6c 65 6e |:" && sh|ortfilen|
|000057d0| 61 6d 65 28 72 65 63 66 | 69 6c 65 29 c2 0d 26 26 |ame(recf|ile)..&&|
|000057e0| 20 22 3f 22 20 77 69 74 | 68 20 22 4e 6f 22 20 6f | "?" wit|h "No" o|
|000057f0| 72 20 22 59 65 73 22 0d | 69 66 20 69 74 20 69 73 |r "Yes".|if it is|
|00005800| 20 22 59 65 73 22 20 74 | 68 65 6e 0d 63 6c 6f 73 | "Yes" t|hen.clos|
|00005810| 65 20 66 69 6c 65 20 72 | 65 63 66 69 6c 65 0d 0d |e file r|ecfile..|
|00005820| 70 75 74 20 22 43 6f 70 | 79 20 6f 66 22 20 26 26 |put "Cop|y of" &&|
|00005830| 20 73 68 6f 72 74 66 69 | 6c 65 6e 61 6d 65 28 72 | shortfi|lename(r|
|00005840| 65 63 66 69 6c 65 29 20 | 69 6e 74 6f 20 64 75 70 |ecfile) |into dup|
|00005850| 70 72 6f 6d 70 74 0d 70 | 75 74 20 53 74 61 6e 64 |prompt.p|ut Stand|
|00005860| 61 72 64 46 69 6c 65 28 | 22 70 75 74 3a 4e 65 77 |ardFile(|"put:New|
|00005870| 2c 43 61 6e 63 65 6c 22 | 2c 64 75 70 70 72 6f 6d |,Cancel"|,dupprom|
|00005880| 70 74 2c c2 0d 22 45 6e | 74 65 72 20 64 75 70 6c |pt,.."En|ter dupl|
|00005890| 69 63 61 74 65 20 66 69 | 6c 65 20 6e 61 6d 65 3a |icate fi|le name:|
|000058a0| 22 29 20 69 6e 74 6f 20 | 44 65 73 74 46 69 6c 65 |") into |DestFile|
|000058b0| 0d 69 66 20 44 65 73 74 | 46 69 6c 65 20 ad 20 65 |.if Dest|File . e|
|000058c0| 6d 70 74 79 20 74 68 65 | 6e 0d 73 65 74 20 63 75 |mpty the|n.set cu|
|000058d0| 72 73 6f 72 20 74 6f 20 | 77 61 74 63 68 0d 46 69 |rsor to |watch.Fi|
|000058e0| 6c 65 43 6f 70 79 20 72 | 65 63 66 69 6c 65 2c 44 |leCopy r|ecfile,D|
|000058f0| 65 73 74 46 69 6c 65 2c | 74 72 75 65 0d 67 65 74 |estFile,|true.get|
|00005900| 20 74 68 65 20 52 65 73 | 75 6c 74 0d 69 66 20 69 | the Res|ult.if i|
|00005910| 74 20 ad 20 65 6d 70 74 | 79 0d 74 68 65 6e 20 61 |t . empt|y.then a|
|00005920| 6e 73 77 65 72 20 69 74 | 0d 65 6e 64 20 69 66 0d |nswer it|.end if.|
|00005930| 6f 70 65 6e 20 66 69 6c | 65 20 72 65 63 66 69 6c |open fil|e recfil|
|00005940| 65 0d 72 65 61 64 20 66 | 72 6f 6d 20 66 69 6c 65 |e.read f|rom file|
|00005950| 20 72 65 63 66 69 6c 65 | 20 75 6e 74 69 6c 20 72 | recfile| until r|
|00005960| 65 74 75 72 6e 0d 65 6e | 64 20 69 66 0d 0d 65 6e |eturn.en|d if..en|
|00005970| 64 20 69 66 0d 65 6e 64 | 20 69 66 0d 0d 65 6e 64 |d if.end| if..end|
|00005980| 20 72 65 70 65 61 74 20 | 65 6c 73 65 0d 70 75 74 | repeat |else.put|
|00005990| 20 6f 70 74 69 6f 6e 61 | 6c 66 69 6c 65 6e 61 6d | optiona|lfilenam|
|000059a0| 65 20 69 6e 74 6f 20 72 | 65 63 66 69 6c 65 0d 6f |e into r|ecfile.o|
|000059b0| 70 65 6e 20 66 69 6c 65 | 20 72 65 63 66 69 6c 65 |pen file| recfile|
|000059c0| 0d 72 65 61 64 20 66 72 | 6f 6d 20 66 69 6c 65 20 |.read fr|om file |
|000059d0| 72 65 63 66 69 6c 65 20 | 75 6e 74 69 6c 20 72 65 |recfile |until re|
|000059e0| 74 75 72 6e 0d 65 6e 64 | 20 69 66 0d 0d 0d 70 75 |turn.end| if...pu|
|000059f0| 74 20 22 46 69 6c 65 3a | 22 20 26 26 20 73 68 6f |t "File:|" && sho|
|00005a00| 72 74 66 69 6c 65 6e 61 | 6d 65 28 72 65 63 66 69 |rtfilena|me(recfi|
|00005a10| 6c 65 29 20 69 6e 74 6f | 20 62 67 20 66 69 65 6c |le) into| bg fiel|
|00005a20| 64 20 22 66 69 6c 65 6e | 61 6d 65 22 0d 70 75 74 |d "filen|ame".put|
|00005a30| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 61 6c 6c 72 | empty i|nto allr|
|00005a40| 65 63 6f 72 64 73 0d 70 | 75 74 20 65 6d 70 74 79 |ecords.p|ut empty|
|00005a50| 20 69 6e 74 6f 20 61 6c | 6c 6b 65 79 73 0d 70 75 | into al|lkeys.pu|
|00005a60| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 61 6c 6c |t empty |into all|
|00005a70| 69 6e 64 65 78 65 6e 74 | 72 69 65 73 0d 0d 72 65 |indexent|ries..re|
|00005a80| 61 64 20 66 72 6f 6d 20 | 66 69 6c 65 20 72 65 63 |ad from |file rec|
|00005a90| 66 69 6c 65 20 75 6e 74 | 69 6c 20 72 65 74 75 72 |file unt|il retur|
|00005aa0| 6e 0d 70 75 74 20 28 69 | 74 20 2b 20 30 29 20 69 |n.put (i|t + 0) i|
|00005ab0| 6e 74 6f 20 68 6f 77 4d | 61 6e 79 4b 65 79 77 6f |nto howM|anyKeywo|
|00005ac0| 72 64 73 0d 73 65 74 20 | 74 68 65 20 63 75 72 73 |rds.set |the curs|
|00005ad0| 6f 72 20 74 6f 20 77 61 | 74 63 68 0d 0d 70 75 74 |or to wa|tch..put|
|00005ae0| 20 22 52 65 61 64 69 6e | 67 22 20 26 26 20 68 6f | "Readin|g" && ho|
|00005af0| 77 4d 61 6e 79 6b 65 79 | 77 6f 72 64 73 20 26 26 |wManykey|words &&|
|00005b00| 20 22 6b 65 79 77 6f 72 | 64 73 2e 22 0d 0d 72 65 | "keywor|ds."..re|
|00005b10| 70 65 61 74 20 77 69 74 | 68 20 78 3d 31 20 74 6f |peat wit|h x=1 to|
|00005b20| 20 68 6f 77 4d 61 6e 79 | 4b 65 79 77 6f 72 64 73 | howMany|Keywords|
|00005b30| 0d 2d 2d 70 75 74 20 22 | 52 65 61 64 22 20 26 26 |.--put "|Read" &&|
|00005b40| 20 78 20 26 26 20 22 6f | 75 74 20 6f 66 22 20 26 | x && "o|ut of" &|
|00005b50| 26 20 68 6f 77 4d 61 6e | 79 6b 65 79 77 6f 72 64 |& howMan|ykeyword|
|00005b60| 73 20 26 26 20 22 6b 65 | 79 77 6f 72 64 73 2e 22 |s && "ke|ywords."|
|00005b70| 0d 72 65 61 64 20 66 72 | 6f 6d 20 66 69 6c 65 20 |.read fr|om file |
|00005b80| 72 65 63 66 69 6c 65 20 | 75 6e 74 69 6c 20 72 65 |recfile |until re|
|00005b90| 74 75 72 6e 0d 70 75 74 | 20 69 74 20 61 66 74 65 |turn.put| it afte|
|00005ba0| 72 20 61 6c 6c 6b 65 79 | 73 0d 65 6e 64 20 72 65 |r allkey|s.end re|
|00005bb0| 70 65 61 74 0d 0d 6d 61 | 6b 65 6b 65 79 77 6f 72 |peat..ma|kekeywor|
|00005bc0| 64 6c 69 73 74 73 28 61 | 6c 6c 6b 65 79 73 29 0d |dlists(a|llkeys).|
|00005bd0| 0d 72 65 61 64 20 66 72 | 6f 6d 20 66 69 6c 65 20 |.read fr|om file |
|00005be0| 72 65 63 66 69 6c 65 20 | 75 6e 74 69 6c 20 72 65 |recfile |until re|
|00005bf0| 74 75 72 6e 0d 70 75 74 | 20 28 69 74 2b 30 29 20 |turn.put| (it+0) |
|00005c00| 69 6e 74 6f 20 68 6f 77 | 4d 61 6e 79 54 68 65 72 |into how|ManyTher|
|00005c10| 65 41 72 65 0d 73 65 74 | 20 74 68 65 20 63 75 72 |eAre.set| the cur|
|00005c20| 73 6f 72 20 74 6f 20 77 | 61 74 63 68 0d 0d 70 75 |sor to w|atch..pu|
|00005c30| 74 20 22 52 65 61 64 69 | 6e 67 22 20 26 26 20 68 |t "Readi|ng" && h|
|00005c40| 6f 77 4d 61 6e 79 54 68 | 65 72 65 41 72 65 20 26 |owManyTh|ereAre &|
|00005c50| 26 20 22 72 65 66 65 72 | 65 6e 63 65 73 2e 22 0d |& "refer|ences.".|
|00005c60| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 78 3d 31 |.repeat |with x=1|
|00005c70| 20 74 6f 20 68 6f 77 4d | 61 6e 79 54 68 65 72 65 | to howM|anyThere|
|00005c80| 41 72 65 0d 2d 2d 70 75 | 74 20 22 52 65 61 64 22 |Are.--pu|t "Read"|
|00005c90| 20 26 26 20 78 20 26 26 | 20 22 6f 75 74 20 6f 66 | && x &&| "out of|
|00005ca0| 22 20 26 26 20 68 6f 77 | 4d 61 6e 79 54 68 65 72 |" && how|ManyTher|
|00005cb0| 65 41 72 65 20 26 26 20 | 22 72 65 66 65 72 65 6e |eAre && |"referen|
|00005cc0| 63 65 73 2e 22 0d 72 65 | 61 64 20 66 72 6f 6d 20 |ces.".re|ad from |
|00005cd0| 66 69 6c 65 20 72 65 63 | 66 69 6c 65 20 75 6e 74 |file rec|file unt|
|00005ce0| 69 6c 20 72 65 74 75 72 | 6e 0d 70 75 74 20 69 74 |il retur|n.put it|
|00005cf0| 20 61 66 74 65 72 20 61 | 6c 6c 72 65 63 6f 72 64 | after a|llrecord|
|00005d00| 73 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 0d 70 75 |s.end re|peat..pu|
|00005d10| 74 20 22 52 65 61 64 69 | 6e 67 22 20 26 26 20 68 |t "Readi|ng" && h|
|00005d20| 6f 77 4d 61 6e 79 54 68 | 65 72 65 41 72 65 20 26 |owManyTh|ereAre &|
|00005d30| 26 20 22 69 6e 64 65 78 | 20 65 6e 74 72 69 65 73 |& "index| entries|
|00005d40| 2e 22 0d 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |."..repe|at with |
|00005d50| 78 3d 31 20 74 6f 20 68 | 6f 77 4d 61 6e 79 54 68 |x=1 to h|owManyTh|
|00005d60| 65 72 65 41 72 65 0d 2d | 2d 70 75 74 20 22 52 65 |ereAre.-|-put "Re|
|00005d70| 61 64 22 20 26 26 20 78 | 20 26 26 20 22 6f 75 74 |ad" && x| && "out|
|00005d80| 20 6f 66 22 20 26 26 20 | 68 6f 77 4d 61 6e 79 54 | of" && |howManyT|
|00005d90| 68 65 72 65 41 72 65 20 | 26 26 20 22 69 6e 64 65 |hereAre |&& "inde|
|00005da0| 78 20 65 6e 74 72 69 65 | 73 2e 22 0d 72 65 61 64 |x entrie|s.".read|
|00005db0| 20 66 72 6f 6d 20 66 69 | 6c 65 20 72 65 63 66 69 | from fi|le recfi|
|00005dc0| 6c 65 20 75 6e 74 69 6c | 20 72 65 74 75 72 6e 0d |le until| return.|
|00005dd0| 70 75 74 20 69 74 20 61 | 66 74 65 72 20 61 6c 6c |put it a|fter all|
|00005de0| 69 6e 64 65 78 65 6e 74 | 72 69 65 73 0d 65 6e 64 |indexent|ries.end|
|00005df0| 20 72 65 70 65 61 74 0d | 0d 63 6c 6f 73 65 20 66 | repeat.|.close f|
|00005e00| 69 6c 65 20 72 65 63 66 | 69 6c 65 0d 70 75 74 20 |ile recf|ile.put |
|00005e10| 31 20 69 6e 74 6f 20 74 | 68 69 73 72 65 66 6e 6f |1 into t|hisrefno|
|00005e20| 0d 64 69 73 70 6c 61 79 | 72 65 63 6f 72 64 0d 0d |.display|record..|
|00005e30| 75 70 64 61 74 65 69 6e | 64 65 78 0d 65 6e 64 20 |updatein|dex.end |
|00005e40| 6f 70 65 6e 72 65 63 6f | 72 64 66 69 6c 65 0d 0d |openreco|rdfile..|
|00005e50| 6f 6e 20 63 6c 6f 73 65 | 72 65 63 6f 72 64 66 69 |on close|recordfi|
|00005e60| 6c 65 0d 67 6c 6f 62 61 | 6c 20 72 65 63 66 69 6c |le.globa|l recfil|
|00005e70| 65 2c 61 6c 6c 72 65 63 | 6f 72 64 73 2c 61 6c 6c |e,allrec|ords,all|
|00005e80| 6b 65 79 73 2c 61 6c 6c | 69 6e 64 65 78 65 6e 74 |keys,all|indexent|
|00005e90| 72 69 65 73 0d 69 66 20 | 72 65 63 66 69 6c 65 20 |ries.if |recfile |
|00005ea0| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 20 74 68 65 |is not e|mpty the|
|00005eb0| 6e 0d 6f 70 65 6e 20 66 | 69 6c 65 20 72 65 63 66 |n.open f|ile recf|
|00005ec0| 69 6c 65 0d 70 75 74 20 | 6e 75 6d 62 65 72 6f 66 |ile.put |numberof|
|00005ed0| 72 65 66 73 28 29 20 69 | 6e 74 6f 20 68 6f 77 4d |refs() i|nto howM|
|00005ee0| 61 6e 79 54 68 65 72 65 | 41 72 65 0d 0d 77 72 69 |anyThere|Are..wri|
|00005ef0| 74 65 20 22 54 68 69 73 | 20 69 73 20 61 20 72 65 |te "This| is a re|
|00005f00| 66 65 72 65 6e 63 65 73 | 20 66 69 6c 65 22 20 26 |ferences| file" &|
|00005f10| 20 72 65 74 75 72 6e 20 | 74 6f 20 66 69 6c 65 20 | return |to file |
|00005f20| 72 65 63 66 69 6c 65 0d | 0d 70 75 74 20 22 57 72 |recfile.|.put "Wr|
|00005f30| 69 74 69 6e 67 20 6b 65 | 79 77 6f 72 64 73 2e 22 |iting ke|ywords."|
|00005f40| 0d 0d 77 72 69 74 65 20 | 74 68 65 20 6e 75 6d 62 |..write |the numb|
|00005f50| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 6f 66 20 61 |er of li|nes of a|
|00005f60| 6c 6c 6b 65 79 73 20 26 | 20 72 65 74 75 72 6e 20 |llkeys &| return |
|00005f70| 26 c2 0d 61 6c 6c 6b 65 | 79 73 20 74 6f 20 66 69 |&..allke|ys to fi|
|00005f80| 6c 65 20 72 65 63 66 69 | 6c 65 0d 0d 77 72 69 74 |le recfi|le..writ|
|00005f90| 65 20 68 6f 77 4d 61 6e | 79 54 68 65 72 65 41 72 |e howMan|yThereAr|
|00005fa0| 65 20 26 20 72 65 74 75 | 72 6e 20 74 6f 20 66 69 |e & retu|rn to fi|
|00005fb0| 6c 65 20 72 65 63 66 69 | 6c 65 0d 0d 70 75 74 20 |le recfi|le..put |
|00005fc0| 22 57 72 69 74 69 6e 67 | 22 20 26 26 20 68 6f 77 |"Writing|" && how|
|00005fd0| 4d 61 6e 79 54 68 65 72 | 65 41 72 65 20 26 26 20 |ManyTher|eAre && |
|00005fe0| 22 72 65 66 65 72 65 6e | 63 65 73 2e 22 0d 0d 72 |"referen|ces."..r|
|00005ff0| 65 70 65 61 74 20 77 69 | 74 68 20 78 3d 31 20 74 |epeat wi|th x=1 t|
|00006000| 6f 20 68 6f 77 4d 61 6e | 79 54 68 65 72 65 41 72 |o howMan|yThereAr|
|00006010| 65 0d 2d 2d 70 75 74 20 | 22 57 72 69 74 74 65 6e |e.--put |"Written|
|00006020| 22 20 26 26 20 78 20 26 | 26 20 22 6f 75 74 20 6f |" && x &|& "out o|
|00006030| 66 22 20 26 26 20 68 6f | 77 4d 61 6e 79 54 68 65 |f" && ho|wManyThe|
|00006040| 72 65 41 72 65 20 26 26 | 20 22 72 65 66 65 72 65 |reAre &&| "refere|
|00006050| 6e 63 65 73 2e 22 0d 67 | 65 74 20 6c 69 6e 65 20 |nces.".g|et line |
|00006060| 78 20 6f 66 20 61 6c 6c | 72 65 63 6f 72 64 73 0d |x of all|records.|
|00006070| 77 72 69 74 65 20 69 74 | 20 26 20 72 65 74 75 72 |write it| & retur|
|00006080| 6e 20 74 6f 20 66 69 6c | 65 20 72 65 63 66 69 6c |n to fil|e recfil|
|00006090| 65 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 0d 70 75 |e.end re|peat..pu|
|000060a0| 74 20 22 57 72 69 74 69 | 6e 67 22 20 26 26 20 68 |t "Writi|ng" && h|
|000060b0| 6f 77 4d 61 6e 79 54 68 | 65 72 65 41 72 65 20 26 |owManyTh|ereAre &|
|000060c0| 26 20 22 69 6e 64 65 78 | 20 65 6e 74 72 69 65 73 |& "index| entries|
|000060d0| 2e 22 0d 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |."..repe|at with |
|000060e0| 78 3d 31 20 74 6f 20 68 | 6f 77 4d 61 6e 79 54 68 |x=1 to h|owManyTh|
|000060f0| 65 72 65 41 72 65 0d 2d | 2d 70 75 74 20 22 57 72 |ereAre.-|-put "Wr|
|00006100| 69 74 74 65 6e 22 20 26 | 26 20 78 20 26 26 20 22 |itten" &|& x && "|
|00006110| 6f 75 74 20 6f 66 22 20 | 26 26 20 68 6f 77 4d 61 |out of" |&& howMa|
|00006120| 6e 79 54 68 65 72 65 41 | 72 65 20 26 26 20 22 69 |nyThereA|re && "i|
|00006130| 6e 64 65 78 20 65 6e 74 | 72 69 65 73 2e 22 0d 67 |ndex ent|ries.".g|
|00006140| 65 74 20 6c 69 6e 65 20 | 78 20 6f 66 20 61 6c 6c |et line |x of all|
|00006150| 69 6e 64 65 78 65 6e 74 | 72 69 65 73 0d 77 72 69 |indexent|ries.wri|
|00006160| 74 65 20 69 74 20 26 20 | 72 65 74 75 72 6e 20 74 |te it & |return t|
|00006170| 6f 20 66 69 6c 65 20 72 | 65 63 66 69 6c 65 0d 65 |o file r|ecfile.e|
|00006180| 6e 64 20 72 65 70 65 61 | 74 0d 0d 63 6c 6f 73 65 |nd repea|t..close|
|00006190| 20 66 69 6c 65 20 72 65 | 63 66 69 6c 65 0d 70 75 | file re|cfile.pu|
|000061a0| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 62 67 20 |t empty |into bg |
|000061b0| 66 69 65 6c 64 20 22 66 | 69 6c 65 6e 61 6d 65 22 |field "f|ilename"|
|000061c0| 0d 70 75 74 20 65 6d 70 | 74 79 20 69 6e 74 6f 20 |.put emp|ty into |
|000061d0| 72 65 63 66 69 6c 65 0d | 70 75 74 20 65 6d 70 74 |recfile.|put empt|
|000061e0| 79 20 69 6e 74 6f 20 61 | 6c 6c 72 65 63 6f 72 64 |y into a|llrecord|
|000061f0| 73 0d 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |s.put em|pty into|
|00006200| 20 61 6c 6c 69 6e 64 65 | 78 65 6e 74 72 69 65 73 | allinde|xentries|
|00006210| 0d 70 75 74 20 65 6d 70 | 74 79 20 69 6e 74 6f 20 |.put emp|ty into |
|00006220| 61 6c 6c 6b 65 79 73 0d | 75 70 64 61 74 65 69 6e |allkeys.|updatein|
|00006230| 64 65 78 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 63 |dex.end |if.end c|
|00006240| 6c 6f 73 65 72 65 63 6f | 72 64 66 69 6c 65 0d 0d |losereco|rdfile..|
|00006250| 0d 6f 6e 20 63 68 61 6e | 67 65 72 65 66 73 0d 63 |.on chan|gerefs.c|
|00006260| 6c 6f 73 65 72 65 63 6f | 72 64 66 69 6c 65 0d 6f |losereco|rdfile.o|
|00006270| 70 65 6e 72 65 63 6f 72 | 64 66 69 6c 65 0d 65 6e |penrecor|dfile.en|
|00006280| 64 20 63 68 61 6e 67 65 | 72 65 66 73 0d 0d 6f 6e |d change|refs..on|
|00006290| 20 6f 70 65 6e 53 74 61 | 63 6b 0d 67 6c 6f 62 61 | openSta|ck.globa|
|000062a0| 6c 20 6f 6c 64 55 73 65 | 72 4c 65 76 65 6c 2c 6e |l oldUse|rLevel,n|
|000062b0| 61 76 69 67 61 74 6f 72 | 56 69 73 69 62 6c 65 2c |avigator|Visible,|
|000062c0| 74 68 69 73 72 65 66 6e | 6f 2c 61 6c 6c 72 65 63 |thisrefn|o,allrec|
|000062d0| 6f 72 64 73 2c 72 65 63 | 66 69 6c 65 2c c2 0d 6c |ords,rec|file,..l|
|000062e0| 6f 63 6b 65 64 66 69 65 | 6c 64 73 2c 61 6c 6c 6b |ockedfie|lds,allk|
|000062f0| 65 79 73 2c 69 6e 64 65 | 78 76 69 73 69 62 6c 65 |eys,inde|xvisible|
|00006300| 2c 6e 6f 74 65 76 69 73 | 69 62 6c 65 2c 64 6f 6e |,notevis|ible,don|
|00006310| 74 64 6f 69 74 2c 67 4f | 4b 74 6f 43 6f 6c 6f 72 |tdoit,gO|KtoColor|
|00006320| 69 7a 65 0d 0d 69 66 20 | 77 72 6f 6e 67 53 74 61 |ize..if |wrongSta|
|00006330| 63 6b 28 29 20 74 68 65 | 6e 20 70 61 73 73 20 6f |ck() the|n pass o|
|00006340| 70 65 6e 53 74 61 63 6b | 0d 0d 70 75 74 20 66 61 |penStack|..put fa|
|00006350| 6c 73 65 20 69 6e 74 6f | 20 6e 61 76 69 67 61 74 |lse into| navigat|
|00006360| 6f 72 56 69 73 69 62 6c | 65 0d 70 75 74 20 66 61 |orVisibl|e.put fa|
|00006370| 6c 73 65 20 69 6e 74 6f | 20 69 6e 64 65 78 56 69 |lse into| indexVi|
|00006380| 73 69 62 6c 65 0d 70 75 | 74 20 66 61 6c 73 65 20 |sible.pu|t false |
|00006390| 69 6e 74 6f 20 6e 6f 74 | 65 56 69 73 69 62 6c 65 |into not|eVisible|
|000063a0| 0d 70 75 74 20 66 61 6c | 73 65 20 69 6e 74 6f 20 |.put fal|se into |
|000063b0| 63 61 72 64 4e 6f 56 69 | 73 69 62 6c 65 0d 70 75 |cardNoVi|sible.pu|
|000063c0| 74 20 74 72 75 65 20 69 | 6e 74 6f 20 6c 6f 63 6b |t true i|nto lock|
|000063d0| 65 64 66 69 65 6c 64 73 | 0d 70 75 74 20 66 61 6c |edfields|.put fal|
|000063e0| 73 65 20 69 6e 74 6f 20 | 64 6f 6e 74 64 6f 69 74 |se into |dontdoit|
|000063f0| 0d 70 75 74 20 74 68 65 | 20 75 73 65 72 4c 65 76 |.put the| userLev|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.